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.
Note: ListDelete can be used on the single-selection and multiselection List Box controls.
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 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.
// Delete the selected element from "LIST_CustomerList"
ListDelete(LIST_CustomerList)
Syntax
ListDelete(<List Box control> [, <Element subscript>])
<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.
<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 = ListCount(LIST_CustomerList) to 1 STEP -1
ListDelete(LIST_CustomerList, Subscript)
END

Miscellaneous

  • To delete an element from a Table control, use TableDelete.
  • ListDelete can be used on a "Combo Box" table column.
Component : wd250obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
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 May 2016