PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Cascading deletions
  • Deleting an element on the browser
  • Miscellaneous
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Deletes an element from a memory List Box (or ListView) control or from a memory Combo Box control.
Note: <List Box>.Delete can be used on the single-selection and multiselection List Box controls.
WEBDEV - Browser code Caution: The element will be deleted from the page displayed in the browser only. See Remarks for more details.
Versions 15 and later
Android This function is now available for Android applications.
New in version 15
Android This function is now available for Android applications.
Android This function is now available for Android applications.
Versions 16 and later
WINDEVLinux This function is now available for WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for WINDEV applications in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Delete the selected element from "LIST_CustomerList"
LIST_CustomerList.Delete()
Syntax
<List Box control>.Delete([<Element subscript>])
<List Box control>: Control name
Name of List Box (or Combo Box) control to use.
<Element subscript>: Optional integer
Subscript of 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 multiselection 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 - Server codeWEBDEV - Browser code The editable Combo Box controls are not available.
Remarks

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:
Subscript is int
FOR Subscript = LIST_CustomerList.Count() TO 1 STEP -1
LIST_CustomerList.Delete(Subscript)
END
WEBDEV - Browser code

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, <List Box>.Delete must be run on the server.
The call to <List Box>.Delete in browser code is convenient when using the 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>.Delete to automatic AJAX mode. That's it! No additional programming is required. See AJAX for more details.

Miscellaneous

  • To delete an element from a Table control, use <Table>.Delete.
  • <List Box>.Delete can be used on a "Combo Box" table column.
Component : wd250obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment