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 List Box
  • Last element
  • Equivalence
  • Miscellaneous
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
Selects one or more elements in a List Box, ListView or Combo Box control.
The element is selected but it is not displayed if it is not visible. To make the selected element visible, use <List Box>Posición.
Reminder The selected item corresponds to the current item on which the selection banner is displayed.
Note: The <List Box>.SelectPlus function can be used on both:
  • List Box controls based on a data file or populated programmatically,
  • single-selection or multi-selection List Box controls.
Ejemplo
// Sélection de l'élément dont l'indice est 7 dans le champ "LISTE_ListeClient"
LISTE_ListeClient.SelectPlus(7)
Sintaxis
<List Box control>.SelectPlus([<Index 1> [... [, <Index N>]]])
<List Box control>: Nombre del control
Name of List Box (or Combo Box) control to use.
<Index 1>: Números enteros opcionales
Index of the first element to be selected.
If no index is specified, all the elements in the specified List Box or Combo Box control are selected.
<List Box>.SelectPlus has no effect if these parameters correspond to elements that are already selected.
<Index N>: Entero opcional
Index of the Nth element to be selected.
If no index is specified, all the elements in the specified List Box or Combo Box control are selected.
<List Box>.SelectPlus has no effect if these parameters correspond to elements that are already selected.
Observaciones

Last element

To position on the last element of List Box control, use the following syntax:
<List Box control>.SelectPlus(<List Box control>.Count)
or
<List Box control> = <List Box control>.Count

Equivalence

For a single-selection List Box control without calling gStoredValue, the two following syntaxes are equivalent:
<List Box control>.SelectPlus(<Index>)
and
<List Box control> = <Index>

Miscellaneous

  • To select an element in a Table control, use <Table>.SelectPlus.
  • <List Box>.SelectPlus can be used on a "Combo Box" table column.
  • <List Box>.SelectMinus allows you to deselect the elements of a List Box or Combo Box control.
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 23
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 04/10/2024

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