RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomStaticListAction.GetString Method

Returns the value of the Strings property.

Pascal
function GetString(Index: Integer): String; override;
C++
virtual __fastcall AnsiString GetString(int Index);

GetString is the protected read implementation of the Strings property. 

In TCustomListAction, GetString always returns an empty string. 

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

 

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