Maptitude GISDK Help |
Removes elements from an array.
new_array = ExcludeArrayElements(array my_array, integer start, integer count)
Argument |
Contents |
my_array |
The array from which elements are removed |
start |
The position of the first element to be removed |
count |
The number of elements that are removed |
An array containing the remaining elements of my_array, or null if all the elements of my_array are removed.
If start is null, ExcludeArrayElements() removes elements from the beginning of my_array.
ExcludeArrayElements() does not modify my_array; it creates a new array containing a subset of the elements.
A = {1, 2, 3, 4, 5} |
|
B = ExcludeArrayElements(A, 2, 3) |
// Now, B equals {1, 5} |
A = ExcludeArrayElements(A, 1, 2) |
// Now, A equals {3, 4, 5} |
Error Type |
Meaning |
Error |
Start is less than one, or count is less than zero. |
Function |
Summary |
Excludes elements from an array |
|
Creates an array that contains the elements of the array a that are also in array b |
|
Inserts elements into an array |
|
Extracts a number of elements from an array |
©2025 Caliper Corporation | www.caliper.com |