RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStrings.Put Method

Changes the value of the string with a specified index.

Pascal
procedure Put(Index: Integer; const S: string); virtual;
C++
virtual __fastcall Put(int Index, const AnsiString S);

Put is the protected write implementation of the Strings property. 

Put changes the value of the string with the index specified by Index to S. Put does not change the object at the specified position. That is, any object associated with the previous string becomes associated with the new string. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!