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
  • Cascading deletions
  • Deleting an element on 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
Deletes an element from a List Box, ListView or Combo Box control populated programmatically.
Note: The ListDelete function can be used for both single-selection and multi-selection List Box controls..
WEBDEV - Código Navegador Caution: The item will be deleted only on the page displayed in the browser. For more details, see Remarks.
// Delete the selected element from "LIST_CustomerList"
ListDelete(LIST_CustomerList)
Sintaxis
ListDelete(<List Box control> [, <Element index>])
<List Box control>: Control name
Name of List Box (or Combo Box) control to use. If this parameter corresponds to an empty string (""), the List Box control (or Combo Box) to which the current event belongs will be used.
WEBDEV - Código Navegador The name of the List Box (or Combo Box) control to use must be specified.
<Element index>: Optional integer
Index of the element to delete from the List Box or Combo Box control. If this parameter is not specified:
  • in a single-selection List Box control, the current element is deleted.
  • in a multi-selection List Box control, the selected elements are deleted.
  • in a Combo Box control, the current element is deleted. If this control is an editable Combo Box control, the edit control is cleared.
WEBDEV - Código ServidorWEBDEV - Código Navegador The editable Combo Box controls are not available.
Observaciones

Cascading deletions

When deleting a set of elements, the elements found after each deleted element are moved. To perform cascading deletions, we advise you to start from the last element.
For example:
Index is int
FOR Index = ListCount(LIST_CustomerList) TO 1 STEP -1
	ListDelete(LIST_CustomerList, Index)
END
WEBDEV - Código Navegador

Deleting an element on the browser

When deleting an element in browser code, this element is only deleted from the page displayed in the browser. In order for this element to be deleted from the server, ListDelete must be run on the server.
Calling ListDelete 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 ListDelete FUNCTION in automatic AJAX mode. That's it! No additional programming is required. For more details, see AJAX.

Miscellaneous

  • To delete an element from a Table control, use TableDelete.
  • ListDelete can be used on a "Combo Box" table column.
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Exemplo ListDelete

//Exclui um elemento
ListDelete(LISTE_PROGRAMA)

//Exclui todos elemento
ListDeleteAll(LISTE_PROGRAMA)

//Blog com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/05/curso-windev-listbox-005-listmoveline.html
https://www.youtube.com/watch?v=OgOz0zAy_Ts
De matos AMARILDO
28 05 2016

Última modificación: 28/03/2025

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