CharInSet doesn't work with non English letters?

前端 未结 5 765
北荒
北荒 2021-02-07 08:32

I have updated an application from Delphi 2007 to Delphi 2010, everything went fine, except one statement that compiled fine but not working which is:

If Edit1.T         


        
5条回答
  •  时光取名叫无心
    2021-02-07 09:27

    CharInSet is useless for the characters above 255. In your case you should use

      case C of
        'S','س' : ShowMessage('Found');
      end;
    

提交回复
热议问题