System.Classes.TStrings.ToObjectArray
Delphi
function ToObjectArray: TArray<TObject>;
C++
System::DynamicArray<System::TObject*> __fastcall ToObjectArray();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TStrings |
Description
Returns the TObject array associated with Strings.
Use ToObjectArray to obtain the array of TObject associated with Strings.
Note: TStrings is an abstract class and this method has no effect. Descendent classes can associate objects with strings.
Note: The TStrings object does not own the objects in the Objects array. Objects added to the Objects array still exist even if the TStrings object is destroyed. They must be explicitly destroyed by the application.