Click or drag to resize

AScan Function <ARRAY, USUAL>

Scan an array until a value is found or a code block returns TRUE.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.0
Syntax
 FUNCTION AScan(
	aTarget AS ARRAY,
	uSearch AS USUAL
) AS DWORD

Parameters

aTarget
Type: ARRAY
The array whose element will be scanned.
uSearch
Type: USUAL
The value to search for.

Return Value

Type: UInt32
If uSearch is a code block then the functions returns the position of the first element for which the code block returns TRUE. Otherwise it returns the position of the first matching element. The function returns 0 if no match is found.
See Also