Adds a string to the list, and associates an object and a hidden object with the string.
Call AddObject to add a string and its associated object and hidden object item to the list. AddObject returns the index of the new string, object, and item.
Note |
---|
If FreeObjects is false, the stringlist object does not own the objects you add this way. Objects added to the TGStringList object still exist even if the TStrings instance is destroyed. They must be explicitly destroyed by the application. Similarly, the FreeData property controls if the Data hidden object is freed. |
Namespace: Structures
Delphi |
public |
Parameters
S
Type: string
AObject
Type: TObject
AData
Type: TObject
Type: Integer