AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Botón de opción
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Adds a new option into a Radio Button control. The option is added after the existing options.
Ejemplo
// Ajout de 2 options 
SEL_Options.Ajoute("Lire un livre sur une tablette")
SEL_Options.Ajoute("Lire un livre de poche")
Sintaxis
<Result> = <Radio Button control>.Add(<Caption> [, <Sub-caption> [, <Image>]])
<Result>: Integro
  • Index of the new option.
  • -1 if an error occurred. To get more details on the error, use ErrorInfo.
<Radio Button control>: Nombre del control
Name of the Radio Button control into which the option will be added. The option is added after the existing options.
<Caption>: Cadena de caracteres
Text of the option to be added.
<Sub-caption>: Cadena de caracteres opcional
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 sub-caption will be displayed even if the radio button uses a display mode without sub-caption.
Android This parameter is not available.
<Image>: Cadena de caracteres opcional
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.
Observaciones
  • The characteristics of added option can also be modified via the following properties used on the option:
  • When adding 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 at a specific position, use <Radio button>.Insert.
  • Use of returned values If the picker uses returned values, you can define the value returned by the added option using the ReturnedValue property.
    For example:
    nIndice is int
    nIndice = SEL_Option.Ajoute("Lire un livre sur une tablette")
    SEL_Option[nIndice].ValeurRenvoyée = "Tablette"
    // Sélection de la nouvelle option
    SEL_Option = "Tablette"
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 23
Esta página también está disponible para…
Comentarios
IMPORTANTE
PARA ZERAR A LISTA DE OPÇÕES, DEIXANDO TODAS OPTIONS DESMARCADAS, BASTA ATRIBUIR O VALOR -1

TO RESET OPTIONS LIST BY LEAVING ALL OPTIONS UNCLEAR, JUST ASSIGN VALUE -1

POUR RÉINITIALISER LA LISTE DES OPTIONS EN LAISSANT TOUTES LES OPTIONS, JUSTE ASSIGNER LA VALEUR -1

PARA RESTABLECER LA LISTA DE OPCIONES DEJANDO TODAS LAS OPCIONES NO CLARAS, SOLO ASIGNE EL VALOR -1
BOLLER
14 10 2019

Última modificación: 30/09/2024

Señalar un error o enviar una sugerencia | Ayuda local