Push Method
Pushes one element onto the end of the array.
The array is treated as a stack, and the passed variable is pushed onto the end of array.
Syntax
array_.Push( Value )
Parameters
Name | Type | Description |
---|---|---|
array_ | The name of an object of type array_ | |
Value | Variant | Required. |
Example
Dim x As New Array_
x.Push "Element one"
x.Push "Element two"
x.Push "Element three"
x.Push "Last element"
' Result :
'Array (
' [1] = > Element one
' [2] = > Element two
' [3] = > Element three
' [4] = > Last element
')