S
startzero
Unregistered / Unconfirmed
GUEST, unregistred user!
var<br>a:string;<br>s,x,y:string;<br>lef,ref:byte;<br>begin<br>edit1.Text:='188';<br>edit2.Text:='178';<br>x:=trim(edit1.Text);<br>y:=trim(edit2.Text);<br>lef:=strtoint(copy(x,1,2));<br>ref:=strtoint(copy(y,1,2));<br>a[1]:=chr(lef);<br>a[2]:=chr(ref);<br>edit3.Text:=a;<br>汉字"疾" 对应ASCII字节188,178<br>直接给lef=188,ref=178不会报错.上面这样就会报错.为什么