Click here to return to the KiXtart HelpDesk main page...

KiXtart 2001 Manual

AScan( )

Action: Searches an array for an element containing the same value as an expression.
 
Syntax: AScan (array, expression, start, length)
 
Parameters: Array

Name of the array to search.

Expression

Specifies the expression to search for.

Start

Optional argument specifying the element number at which the search begins. The element number you specify is included in the search.

Length

Optional argument specifying the number of elements to scan. If you omit this value, the search continues to the last array element.
 

Returns:
>= 0 ID of the element that matches the expression.
-1 Expression not present in array.
 
See Also: Dim, Join( ), Split( ), UBound( )
 
Example:

$Array = 1,2,3,5,7,11,13
$x = ASCAN($Array, 3) ; will return '2'