Gambas Documentation - /comp/gb/object[]/findbyref

/comp/gb/object[]/findbyref

# Object[].FindByRef (gb)

Function FindByRef ( Value As Object [ , Start As Integer ] ) As Integer

Return the position of the first occurrence of a specific object in the array.

If Start is specified, then the search begins at the Start position. By default the entire array is searched.

If Value cannot be found, `-1` is returned.

Contrary to Find, this function always compare objects by identity (i.e. by using their memory address). The _compare special method is never used.