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.
  • an array property of an advanced type (gglCalendar event array, etc.).
  • from a WLanguage queue.
  • from a WLanguage stack.
  • from a WLanguage list.
WEBDEV - Browser codePHP Remarks:
  • PHP This function can only be used with Array and Associative array variables.
  • WEBDEV - Browser code This function can only be used with:
    • array and associative array variables.
    • New in version 2025
      WLanguage queues.
    • New in version 2025
      WLanguage stacks.
    • New in SaaS
      WLanguage lists.
      Note: This feature is only available from WINDEV Suite SaaS 2025 - Update 4.
      For more details, see Using new features exclusive to WINDEV Suite SaaS 2025.
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.
PHP Only Array variables can be used.
WEBDEV - Browser code Only array, queue, stack and list variables can be manipulated.
New in SaaS
Warning List variables are only available in WINDEV Suite SaaS 2025 Update 4.
For more details, see Using new features exclusive to WINDEV Suite SaaS 2025.
Remarks

Deleting elements

  • One-dimensional array: array size is set to 0. The array is not freed: new additions can be made without reallocating the array.
  • Two-dimensional array: only array rows are deleted. The columns are kept. Therefore, <Array>.AddLine can be used after <Array>.DeleteAll.
  • Associative array all elements of the array are deleted.
  • Queue all elements in the queue are deleted.
  • Pile: all items in the stack are deleted.
  • List: all list items are deleted.
Note: To reset array elements to 0 (or "") without changing the array size, use the VariableReset function.
PHP Elements of Queue, Stack and List variables cannot be deleted.

Miscellaneous

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

Last update: 07/23/2025

Send a report | Local help