Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Plz help to use the ampersand properly???

salom2salom2 Member Posts: 1
my code is as follows:

slTmp: TStringList;
str: string;

for...
str:='&'+slTmp[i];


find(str);

I have also tried str:='&&'... but unfortunately it doesn't help also...

I just want to find the strings as follows: &re_date, &f_gate, etc...

thanks in advance!!!


Comments

  • zibadianzibadian Member Posts: 6,349
    : my code is as follows:
    :
    : slTmp: TStringList;
    : str: string;
    :
    : for...
    : str:='&'+slTmp[i];
    :
    :
    : find(str);
    :
    : I have also tried str:='&&'... but unfortunately it doesn't help also...
    :
    : I just want to find the strings as follows: &re_date, &f_gate, etc...
    :
    : thanks in advance!!!
    :
    :
    :
    You can still use the ampersand in normal string variables, and edit boxes. Only labels, buttons, menu items, etc. will show the ampersand as a hotkey. You can change this behaviour in TLabels by using the ShowAccelChar property.
Sign In or Register to comment.