Frank
2003-08-15 17:16:29 UTC
The following is a case statement that I use in my program. As you can see,
in order to check whether the digit keyed is the Decimal Separator, I have
been forced to use both characters, comma and full point.This gives me
problem later. I really need to check for the Decimal Separator, but I
couldn't find the way, since Delphi expects a constant expression. I thank
in advance whoever has a suggestion on how to achieve what I need.
case Key of
'0'..'9' , '+', '-':
begin
......
end;
'.' , ',':
begin
......
end;
in order to check whether the digit keyed is the Decimal Separator, I have
been forced to use both characters, comma and full point.This gives me
problem later. I really need to check for the Decimal Separator, but I
couldn't find the way, since Delphi expects a constant expression. I thank
in advance whoever has a suggestion on how to achieve what I need.
case Key of
'0'..'9' , '+', '-':
begin
......
end;
'.' , ',':
begin
......
end;