RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWideStringList.GetObject Method

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

Pascal
function GetObject(Index: Integer): TObject; override;
C++
virtual __fastcall TObject * GetObject(int 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 TWideStrings, 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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!