RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStringGridStrings.Assign Method

Copies the list of strings and objects from another TStrings object.

Pascal
procedure Assign(Source: TPersistent); override;
C++
virtual __fastcall Assign(TPersistent * Source);

Call Assign to copy the strings and objects from a source object of type TStrings. If the source object has more strings than the number of cells in the row or column represented by the TStringGridStrings object, Assign only copies the first Count strings and objects.  

If the Source parameter is not a TStrings object, Assign calls the inherited method. 

 

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