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
  • Multi-selection List Box control
  • Modified element
  • Modifying an element in the browser
  • 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
Modifies an element in a List Box, ListView or Combo Box control populated programmatically.
Note: The <List Box>Modificar function can be used for both single-selection and multi-selection List Box controls..
WEBDEV - Código Navegador Attention: The element will be modified only on the page displayed in the browser. For more details, see Remarks.
Ejemplo
// Modification de l'élément situé à l'indice 4 dans le champ Liste "LISTE_ListeClient"
LISTE_ListeClient.Modifie("Dupond", 4)
Sintaxis
<List Box control>.Modify(<Element> [, <Element index>])
<List Box control>: Nombre del control
Name of control to use:
  • List Box control,
  • Combo Box control.
<Element>: Cadena de caracteres
Element to modify in the specified List Box (or Combo Box) control.
WEBDEV - Código ServidorWEBDEV - Código NavegadorPHP The Carriage Return characters (CR) and the tabulations (TAB) are not supported.
WEBDEV - Código Servidor To add several consecutive spaces, use non-breaking spaces: Caract(160).
<Element index>: Entero opcional
Index of the element to be modified.
If this parameter:
  • is not specified or if it is set to -1, the current element is modified. <List Box>Modificar has no effect if there is no current element.
  • is equal to 0, the first element is modified.
  • is greater than the number of items in the List Box control (or Combo Box control), a WLanguage error is generated.. The number of elements in a List Box (or Combo Box) control is returned by <List Box>.Count.
PHP <List Box>Modificar has no effect if this parameter is equal to 0 or if it is greater than the number of elements found in the List Box (or Combo Box) control.
Observaciones

Multi-selection List Box control

If one or more elements are selected in the List Box control, <List Box>Modificar deselects no element.
WEBDEV - Código ServidorAjax

Modified element

When modifying an element containing an invisible value (specified by gStoredValue), gStoredValue must be re-used. Otherwise, this invisible value will be lost during the modification.
For example:
  • adding "MyElement":
    COMBO_MaCombo.Ajoute("MonElément" + gStoredValue("1"))
  • modifying "MyElement":
    COMBO_MaCombo.Modifie("MonNouvelElément" + gStoredValue("1"))
WEBDEV - Código Navegador

Modifying an element in the browser

When modifying an element in browser code, this element is modified only for the page displayed in the browser. To make changes to this element on the server as well, <List Box>Modificar must be executed on the server.
Calling <List Box>Modificar in browser code is useful when using AJAX technology, in "Programmed AJAX" mode (via AJAXExecute or AJAXExecuteAsynchronous).
Reminder In "automatic and immediate AJAX" mode, simply pass the server processing containing the function <List Box>Modificar FUNCTION in automatic AJAX mode. That's it! No additional programming is required. For more details, see AJAX.

Miscellaneous

  • To modify an element in a Table control, use <Table>.Modify.
  • <List Box>Modificar can be used on a "Combo Box" table column.
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: 16/01/2025

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