| 26 March 2002 |
AScan() |
| Author | ScriptLogic Corporation |
| Action | Searches all elements of an array for a matching expression. |
| Syntax | AScan (array, "string", start, end) |
| Parameters | array (Required / Array) The array to search in. string (Required / String) The string to search for. start (Optional / Numeric) Lower array element to begin search on. If not specified, search begins at the first element [0]. end (Optional / Numeric) Upper array element to stop search on. If not specified, search ends at the last element. |
| Remarks | Good example of how to use the new FOR EACH command plus UBOUND() and VARTYPE() functions. |
| Returns | Returns the element number of the array that matches the search String or -1 if no match found. |
| Dependencies | None. |
| Examples | |
| Source | |