RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomStaticListAction.SetString Method

Sets the value of the Strings property.

Pascal
procedure SetString(Index: Integer; const Value: String); override;
C++
virtual __fastcall SetString(int Index, const AnsiString Value);

SetString is the protected write implementation of the Strings property. 

In TCustomListAction, SetString does nothing. 

Override SetString to provide a more meaningful value to the Strings property. For example, TStaticListAction overrides SetString to set the caption of the specified item. 

 

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