PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Cascading deletions
  • 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.
Remark: <List Box>.Delete can be used on the single-selection and multiselection List Box controls.
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.
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

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