Data.DBXPlatform.TDBXStringList.GetObject

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetObject(Index: Integer): TObject; override;

Properties

Type Visibility Source Unit Parent
function protected System.Classes.pas Data.DBXPlatform TDBXStringList

Description

Returns the object associated with the string at a specified index.

Data.DBXPlatform.TDBXStringList.GetObject inherits from System.Classes.TStrings.GetObject. All content below this line refers to System.Classes.TStrings.GetObject.

Returns the object associated with the string at a specified index.

GetObject is the protected read implementation of the Objects property.

Index is the index of the string with which the object is associated.

In TStrings, GetObject always returns nil (Delphi) or NULL (C++). This provides a default implementation for descendants that do not support associating objects with the strings in the list. Descendants that support this feature override GetObject to return the specified object.

See Also