|
|
|
|
|
|
|
|
|
|
- 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 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.
MyArray is array of 2 strings
MyArray[1] = "WINDEV"
MyArray[2] = "WEBDEV"
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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|