function IsValidNumber(Key: Char): Boolean;
begin
; Result:= (Key in [DecimalSeparator, '0'..'9']) or
; ; (Key < #32) or (Key = Chr(VK_RETURN));
end;
for i:=0 to n do ; ; ;///n指text的数位
begin
; if (ascii(edit.text(i))>x) or (ascii(edit.text(i))<y) then
; ; ; ; ; ; ; ; ;showmessage('not number');
end