Unit 'fpjson' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TJSONArray.IndexOf

Return index of JSONData instance in array.

Declaration

Source position: fpjson.pp line 555

public function TJSONArray.IndexOf(

  obj: TJSONData

):Integer;

Arguments

obj

  

Object instance to search for.

Function result

Index of Obj in the array, or -1.

Description

IndexOf compares all elements in the array with Obj and returns the index of the element instance that equals Obj. The actual instances are compared, not the JSON value. If none of the elements match, the function returns -1.

See also

Clear

  

Clear the array.


Documentation generated on: Dec 27 2024