FindValueInArray Function

Returns the index for the first occurrence of the provided value. If the value cannot be located, -1 will be returned.

int FindValueInArray(Handle array, any item, int block)


Handle array

Array Handle.

any item

Value to search for

int block

Optionally which block to search in

Return Value

Array index, or -1 on failure


Invalid Handle or invalid block