PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Deleting elements
  • 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 all elements:
  • from a one-dimensional or two-dimensional WLanguage array.
  • from an associative array.
  • from an advanced array property (array of gglCalendar events, ...).
  • from a WLanguage queue.
  • from a WLanguage stack.
  • from a WLanguage list.
Notes:
  • This function is equivalent to <Variable>.DeleteAll.
  • WEBDEV - Browser codePHP This function can only be used with Array and Associative Array variables.
Versions 17 and later
WEBDEV - Browser code This function is now available in browser code.
New in version 17
WEBDEV - Browser code This function is now available in browser code.
WEBDEV - Browser code This function is now available in browser code.
Example
MyArray is array of 2 strings
MyArray[1] = "WINDEV"
MyArray[2] = "WEBDEV"
// Delete all the elements
MyArray.DeleteAll()
 
Syntax
<WLanguage variable>.DeleteAll()
<WLanguage variable>: Array, queue, stack or list
Name of the WLanguage variable to use. This variable can be:
  • an array. This array must be a one-dimensional array or a two-dimensional array.
  • a queue.
  • a stack.
  • a list
WEBDEV - Browser codePHP Only Array variables can be used.
Remarks

Deleting elements

  • One-dimensional array: the array is resized to 0. The array has not been deleted: new additions can be performed without re-allocating the array.
  • Two-dimensional array: only the array rows are deleted. The columns are kept. Therefore, <Array variable>.AddLine can be used after <Array variable>.DeleteAll.
  • Associative array: all array elements are deleted.
  • Queue: all queue elements are deleted.
  • Stack: all stack elements are deleted.
  • List: all list elements are deleted.
Note: To reset the array elements to 0 or to "" without resizing the array, use VariableReset.
WEBDEV - Browser codePHP The deletion of elements is not available for the Queue, Stack and List variables.

Miscellaneous

This function cannot be used with the fixed arrays.
Component : wd240vm.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment