PA_Dial4DFindArrayReal


version 2003


PA_Dial4DFindArrayReal (dialog; variable; value; startPosition) → long

Parameter Type Description
dialog PA_Dial4D → Dialog reference
variable char* → Name of the variable to access
value double → Value to find in the array
startPosition long → Starting position of the search
Function result long ← Index of the first matching value, or -1 if not found.

Description

The routine PA_Dial4DFindArrayReal searches the first occurrence of the specified value and returns its index. If the value is not found, it returns -1. You can specify the starting position of the search so to be able to scan the full array.

See Also

Find in array , PA_Dial4DFindArrayLong .

Error Handling

None.