ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / List Box functions
  • Deletion on the browser
  • Miscellaneous
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Clears a List Box, ListView or Combo Box control populated programmatically.
Remark: <List Box>.DeleteAll can be used on the single-selection and multi-selection List Box controls.
WEBDEV - Browser code Caution: The List Box (or Combo Box) control will be cleared on the page displayed in the browser only. For more details, see Remarks.
Example
// Delete all elements from the "LIST_CustomerList" control
LIST_CustomerList.DeleteAll()
Syntax
<List Box control>.DeleteAll()
<List Box control>: Control name
Name of List Box (or Combo Box) control to use.
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, <List Box>.DeleteAll must be run on the server.
Calling <List Box>.DeleteAll in browser code is useful when using AJAX technology, in "Programmed AJAX" mode (via AJAXExecute or AJAXExecuteAsynchronous).
Reminder: In "Automatic and immediate AJAX" mode, all you have to do is switch the server process containing <List Box>.DeleteAll 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 <Table>.DeleteAll.
  • <List Box>.DeleteAll can be used on a "Combo Box" table column.
  • For the editable Combo Box controls, the input area is cleared.
Component: wd290obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/19/2023

Send a report | Local help