Skip to end of metadata
Go to start of metadata

ifArray supports the array operator[] (See Array Operator)

Implemented By

Supported Methods

Description of Methods

Peek() As Dynamic

Returns the last (highest index) array entry without removing it.  If the array is empty, returns invalid.

Pop() As Dynamic

Returns the last (highest index) array entry and removes it from the array.  If the array is empty, returns invalid and does not change the array.

Push(tvalue As Dynamic) As Void

Adds tvalue as the new highest index entry in the array (adds to the end of the array).

Shift() As Dynamic

Removes the index zero entry from the array and shifts every other entry down one to fill the hole.  Returns the removed entry.  This is like a Pop from the start of the array instead of the end.

Unshift(tvalue As Dynamic) As Void

Adds a new index zero to the array and shifts every other entry up one to accommodate. This is like a Push to the start of the array instead of the end.

Delete(index as Integer) As Boolean

Deletes the indicated array entry, and shifts down all entries above to fill the hole. The array length is decreased by one.  If the entry was successfully deleted, returns true.  If index is out of range, returns false and does not change the array.

Count() As Integer

Returns the length of the array; that is, one more than the index of highest entry.

Clear() As Void

Deletes every entry in the array.

Append(array As Object) As Void

Appends each entry of one roArray to another. If the passed Array contains "holes" (entries that were never set to a value), they are not appended.

 

  • No labels