PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Inserts a new option into a Radio Button control.
Versions 21 and later
Android This function is now available for Android applications.
New in version 21
Android This function is now available for Android applications.
Android This function is now available for Android applications.
Versions 22 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 22
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Insère une option à la position 2
RadioButtonInsert(SEL_Options, 2, "Lire un livre sur une tablette")
Syntax
<Result> = RadioButtonInsert(<Radio Button control> , <Element index> , <Caption> [, <Sub-caption> [, <Image>]])
<Result>: Integer
  • Index of the inserted option.
  • -1 if an error occurred. To get the details of the error, use ErrorInfo.
<Radio Button control>: Control name
Name of Radio Button 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 radio button, the option is added after the last option found in the Radio Button control.
  • is equal to 1 or 0, the element is added before the first option found in the Radio Button control.
<Caption>: Character string
Caption of option to add.
<Sub-caption>: Optional character string
Sub-caption of option to add.
If this parameter is not specified, the added option has no sub-caption.
If this parameter is specified, the sub-caption will be displayed even if the radio button is using a display mode without sub-caption.
Android This parameter is not available.
<Image>: Optional character string
Image associated with the option to add.
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 radio button uses a "Vista style" display mode (with image).
Android This parameter is not available.
Remarks
  • The characteristics of the added option can also be modified via the following properties used on the option:
  • When inserting options into a Radio Button control, the control size is not modified. The added options may not be visible if the control is not large enough. The control can be enlarged by the Width and Height properties.
  • To add an option after the existing options, use RadioButtonAdd.
  • When inserting an option:
    • the index of the inserted option is <Element index>.
    • if the radio button uses the numbering of options, the subscripts of the options found after the inserted option are automatically re-numbered.
  • Using returned values: If the radio button is using the returned values, you have the ability to define the value returned by the inserted option via ReturnedValue.
    For example:
    nIndice is int
    nIndice = RadioButtonInsert(SEL_Option, 2, "Lire un livre sur une tablette")
    SEL_Option[nIndice].ValeurRenvoyée = "Tablette"
    // Sélection de la nouvelle option
    SEL_Option = "Tablette"
Component: wd270obj.dll
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment