T TYZhang Unregistered / Unconfirmed GUEST, unregistred user! 2002-03-09 #2 if string[10] in ['0'..'9'] then ShowMessage('数字') else if string[10] in ['A'..'Z','a'..'z'] then ShowMessage('字母');
if string[10] in ['0'..'9'] then ShowMessage('数字') else if string[10] in ['A'..'Z','a'..'z'] then ShowMessage('字母');
A antic_ant Unregistered / Unconfirmed GUEST, unregistred user! 2002-03-10 #4 你只须strtoint函数来判断 for i:=0 to length(s)-1 do begin try strtoint(s) .... except .. end; end;