ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Queue, stack, list and array functions / Array functions
  • Deleting elements
  • Miscellaneous
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Deletes all elements:
  • from a one-dimensional or two-dimensional WLanguage array.
  • from an associative array.
  • from an array property of an advanced variable type (array of events of a gglCalendar variable, etc.).
  • from a WLanguage queue.
  • from a WLanguage stack.
  • from a WLanguage list.
Remarks:
Example
MyArray is array of 2 strings
MyArray[1] = "WINDEV"
MyArray[2] = "WEBDEV"
// Delete all the elements
ArrayDeleteAll(MyArray)
Syntax
ArrayDeleteAll(<WLanguage variable>)
<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.
Remarks

Deleting elements

  • One-dimensional array: The array size is set to 0. The array is not deleted. You can add new elements without recreating the array.
  • Two-dimensional array: Only array rows are deleted. Columns are preserved. Therefore, ArrayAddLine can be used after ArrayDeleteAll.
  • Associative array: All the elements of the array are deleted.
  • Queue: All the elements of the queue are deleted.
  • Stack: All the elements of the stack are deleted.
  • List: All the elements of the list are deleted.
Note: To set the elements of the array to 0 (or "") without changing the array size, use VariableReset.

Miscellaneous

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

Last update: 09/05/2025

Send a report | Local help