|
|
|
|
<Check box>.Insert (Function) In french: <Interrupteur>.Insère Inserts a new option into a Check Box control. // Inserts an option at position 2 CBOX_Options.Insert(2, "Read a book on a tablet")
Syntax
<Result> = <Check Box control>.Insert(<Element index> , <Caption> [, <Sub-caption> [, <Image>]])
<Result>: Integer - Index of the inserted option.
- -1 if an error occurred. To get more details on the error, use ErrorInfo.
<Check Box control>: Control name Name of Check Box control into which the option will be inserted. <Element index>: Integer Index of the element to be inserted. If this parameter: - is greater than the number of options found in the check box, the option is added after the last option found in the Check Box control.
- is equal to 1 or 0, the element is added before the first option found in the Check Box control.
<Caption>: Character string Text of the option to be added. <Sub-caption>: Optional character string Subtext of the option to be added. If this parameter is not specified, the new option has no subtext. If this parameter is specified, the subtext will be displayed even if the check box uses a display mode without subtext.
<Image>: Optional character string Image associated with the option to insert. If this parameter is not specified, the added option has no image. If this parameter is specified, the image will be displayed only if the check box is using a "Vista style" display mode (with image).
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|