The Find function finds the specified item.
Syntax
Integer Array.Find(
Pointer obj,
Integer iStart = 0,
Integer iEnd = -1)
Pointer obj,
Integer iStart = 0,
Integer iEnd = -1)
Parameters
| obj | Reference to find. | Required |
|---|---|---|
| iStart | Index of the first item. | Optional |
| iEnd | Index of the last item (excluded). -1: Last array item (included). | Optional |
Return value
The Find function returns the index of the item.
If an error occurs, the Find function returns -1.
Example
index = myArray.Find(value)