Click or drag to resize

AScan<T> Function <ARRAY OF<T>, T, Int32, Int32>

Scan an array until value is found.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.0
Syntax
 FUNCTION AScan<T>(
	aTarget AS ARRAY OF<T>,
	element AS T,
	nStart AS LONG,
	nCount AS LONG
)
WHERE T : NEW()
 AS DWORD

Parameters

aTarget
Type: ARRAY OF<T>
The array whose element will be scanned.
element
Type: T
nStart
Type: Int32
The number of the element to start with.
nCount
Type: Int32
The number fo elements the scan.

Type Parameters

T

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