Re: FindComponent


2005-07-11 05:42:34 PM
cppbuilder50
"Remy Lebeau (TeamB)" wrote in message
Quote
news: XXXX@XXXXX.COM ...
So? You are doing that anyway. Going back to your original code:

TComponent * MyFindComp(String PreName,String PostName,int p)
{
return FindComponent(PreName + &PostName.c_str()[p-1]);
}

PreName is an AnsiString. AnsiString does not have a '+' operator for
char*
values, only for AnsiString values.
Ok, i didn't know that.
Thanks.