M
mymy
Unregistered / Unconfirmed
GUEST, unregistred user!
如果s := '?'#1#1#1#2' '可以用下面的方式
procedure TForm1.Button1Click(Sender: TObject);
var s, s1: string
i, J: integer;
begin
s := '?'#1#1#1#2' ';
for i := 1 to Length(s) do
begin
j := ord(s);
// showMessage(IntToStr(j));
if j < 9 then
s1 := s1 + IntToStr(j)
else
begin
if Length(s1)> 0 then
ShowMessage(s1);
s1 := '';
end;
end;
if Length(s1)> 0 then
ShowMessage(s1);
end;
可是如果s := '?'#256#489#1#2' '那怎么取阿
procedure TForm1.Button1Click(Sender: TObject);
var s, s1: string
i, J: integer;
begin
s := '?'#1#1#1#2' ';
for i := 1 to Length(s) do
begin
j := ord(s);
// showMessage(IntToStr(j));
if j < 9 then
s1 := s1 + IntToStr(j)
else
begin
if Length(s1)> 0 then
ShowMessage(s1);
s1 := '';
end;
end;
if Length(s1)> 0 then
ShowMessage(s1);
end;
可是如果s := '?'#256#489#1#2' '那怎么取阿