|
|
|
|
- Deleting elements
- Miscellaneous
ArrayDeleteAll (Function) In french: TableauSupprimeTout 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, etc.).
- from a WLanguage queue.
- from a WLanguage stack.
- from a WLanguage list.
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 is resized to 0. The array has not been deleted: new additions can be performed without re-creating the array.
- Two-dimensional array: only the array rows are deleted. The columns are kept. Therefore, ArrayAddLine can be used after ArrayDeleteAll.
- 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.
Remark: To reset the array elements to 0 or to "" without resizing the array, use VariableReset.
Miscellaneous This function cannot be used with the fixed arrays.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|