RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStringGridStrings.Add Method

Replaces the first empty string with a specified string.

Pascal
function Add(const S: string): Integer; override;
C++
virtual __fastcall int Add(const AnsiString S);

Call Add to add a string to the list. Add searches the list for an empty string and replaces it with S. It then returns the index where it added S to the list. If there are no empty strings in the list, Add does not add S to the list and returns –1. 

 

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