I am working away on Delphi 7 on an XP-equipped comp and using something I THOUGHT was very simple: the StringReplace function. I have StrUtils in my Uses clause, and the compiler happily accepted the code but it did NOT do the replace. I tried AnsiReplaceText as well, and it failed similarly. So then I wrote the following simple test program :
procedure TfrmRotator.Button1Click(Sender: TObject);
s := Edit1.text; // originally contained 'Edit1'
Edit1.text := s;
Of lines A,B,C and D, only D worked. Anyone know why?