ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / List Box functions
  • Deletion on the browser
  • Miscellaneous
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Clears a List Box, ListView or Combo Box control populated programmatically.
Note: The ListDeleteAll function can be used for both single-selection and multi-selection List Box controls..
WEBDEV - Browser code Attention: The List (or Combo) Box control will only be emptied on the page displayed in the browser.. For more details, see Remarks.
Example
// Suppression de tous les éléments présents dans le champ "LISTE_ListeClient"
ListDeleteAll(LISTE_ListeClient)
Syntax
ListDeleteAll(<List Box control>)
<List Box control>: Control name
Name of List Box (or Combo Box) control to use. If this parameter corresponds to an empty string (""), all the elements of the List Box control (or Combo Box) to which the current event belongs are deleted.
WEBDEV - Browser code The name of the List Box (or Combo Box) control to use must be specified.
Remarks
WEBDEV - Browser code

Deletion on the browser

When deleting elements from a List Box (or Combo Box) control in browser code, these elements are deleted on the page displayed in the browser only. In order for these elements to be deleted from the server, ListDeleteAll must be run on the server.
Calling ListDeleteAll 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 switch the server processing containing the ListDeleteAll function to automatic AJAX mode.. That's it! No additional programming is required. For more details, see AJAX.

Miscellaneous

  • To delete all the rows from a Table control, use TableDeleteAll.
  • ListDeleteAll can be used on a "Combo Box" table column.
  • For the editable Combo Box controls, the input area is cleared.
Component: wd300obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help