CharInSet Compiler Warning in Delphi XE4

前端 未结 3 476
甜味超标
甜味超标 2021-02-06 10:25

I have following statement in my Delphi 7 code.

TMyCharSet = set of char;

When I migrated that code to Delphi XE4, I am getting following compi

3条回答
  •  误落风尘
    2021-02-06 11:03

    See fourm suggestions from web:

    if not (CharInSet(Key,['0'..'9',#8]) then key := #0;
    

    From: http://www.activedelphi.com.br/forum/viewtopic.php?t=66035&sid=f5838cc7dc991f7b3340e4e2689b222a

提交回复
热议问题