PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Cascading deletions
  • Deleting an element on the browser
  • Various
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 multi-selection List Box controls.
WEBDEV - Browser code Caution: The element will be deleted from the page displayed in the browser only. See the Notes for more details.
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the 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 control used is the List Box (or Combo Box) control to which the current process belongs.
WEBDEV - Browser code The name of List Box or Combo Box control to use must necessarily be specified.
<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 multi-selection 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 = ListCount(LIST_CustomerList) to 1 STEP -1
ListDelete(LIST_CustomerList, 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, ListDelete must be run on the server.
The call to ListDelete in browser code is suitable 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 ListDelete to automatic AJAX mode. That's it! No additional programming is required. See AJAX for more details.

Various

  • To delete an element from a Table control, use TableDelete.
  • ListDelete can be used on a "Combo box" table column.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • 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
May 28 2016