RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStringGridStrings.PutObject Method

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

Pascal
procedure PutObject(Index: Integer; AObject: TObject); override;
C++
virtual __fastcall PutObject(int Index, TObject * AObject);

PutObject is the protected write implementation of the Objects property. 

As implemented in TStrings, PutObject does nothing. 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 PutObject to change the specified object. 

 

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