我试过了,这样可以的!!!!
procedure TForm1.Button1Click(Sender: TObject);
var
intI:integer;
chara:char;
strinfor:string;
isEnglish:boolean;
begin
isenglish:=true;
strinfor:=edit1.text;
for inti:=0 to length(strinfor)-1 do
begin
chara:=strinfor[inti];
if ord(chara)>127 then
begin
isenglish:=false;
break;
end;
end;
if isenglish=true then
showmessage('您录入的是英语!')
ELSE
showmessage('您录入的是中文!')
end;