Functions Index :: A :: ArrayDelete

[<< up one level]

Module:

array :: core

Definition:

ArrayDelete(string array, int "index")

Description:

Deletes an element from the array passed as argument and returns the resulting array.

Arguments:

array: The array to operate on.

"index" (Optional, defaults to ArrayLen(array) - 1, ie the last array element): The index of the array element to delete.

Examples:

ar1 = "2, 3, 5, 7"

ar2 = "true, true, false, true"

ar3 = "This,is,a,dog."

ar1 = ArrayDelete(ar1) # ar1 is now "2, 3, 5"

ar2 = ArrayDelete(ar2, 2) # ar2 is now "true, true, true"

ar3 = ar3.ArrayDelete(2) # ar3 is now "This,is,dog."

 

[<< top]