function IsDigital(Value: string): boolean; var i, j: integer; str: char; begin result := false; Value := trim(Value); j := Length(Value); if j = 0 then begin result := true; exit; end; for i := 1 to j do begin str := Value[i]; if (str in ['A'..'Z']) or (str in ['a'..'z']) then begin result := true; exit; end; end; end;
s:=Edit1.Text; for i:=1 to length(s) do if not ((s[i] in ['a'..'z']) and (s[i] in ['A'..'Z'])) then showMessage(inttostr(i));
var
i, j: integer;
str: char;
begin
result := false;
Value := trim(Value);
j := Length(Value);
if j = 0 then
begin
result := true;
exit;
end;
for i := 1 to j do
begin
str := Value[i];
if (str in ['A'..'Z']) or (str in ['a'..'z']) then
begin
result := true;
exit;
end;
end;
end;
for i:=1 to length(s) do
if not ((s[i] in ['a'..'z']) and (s[i] in ['A'..'Z'])) then
showMessage(inttostr(i));