Sign in Join
FPDoc Onlineexperiment

TStrings.ToObjectArray function

Member of TStringspublicIn unit Classes

Return the objects as an array of object.

Declaration

pascal
function ToObjectArray(aStart: Integer; aEnd: Integer): TObjectDynArray
 ; overload
function ToObjectArray: TObjectDynArray; overload

Description

ToObjectArray returns all the values in the Objects array as a dynamic array of TObject instances. If aStart and aEnd are specified, only the objects with indexes in the specified array ( aStart and aEnd included) are returned. Nil values will also be returned.

Errors

If aStart is larger than aEnd, no elements are returned.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.