Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSCommon > Structures > Classes > TGStringList > Methods

TGStringList.AddObject(string,TObject,TObject) Method

Scroll Prev Top Next More

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.

noteNote

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

Parameters

S

Type: string

AObject

Type: TObject

AData

Type: TObject

Return Value

Type: Integer

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb