多读一个字节 ???
怎样读??
if nId<=nCount then
begin
if (bytetype(sltemp.Text[nid],1)=mbSingleByte )then
begin
Memo1.Text:=Memo1.Text+slTEMP.Text[nId];
inc(nId);
end else
begin
Showmessage('it ia a character');
//memo1.Text:=memo1.Text+sltemp.Text[nid,2];
inc(nid);
end
end else
Timer1.Enabled:=False;
procedure TForm1.FormCreate(Sender: TObject);
var
a:WideString;
begin
Step := 3;
test := '北街甜1城家2具3城4楼5装7修3在4202339999即,双虎家具布艺沙发折金属玻璃餐桌折优惠(特价商品除外) 北街西林大桥转盘处';
Count := 8;
Index := 1;
var
a: WideString;
test, test1: string;
Count, Index: integer;
begin
test := '北街甜1城家2具3城4楼5装7修3在4202339999即,双虎家具布艺沙发折金属玻璃餐桌折优惠(特价商品除外) 北街西林大桥转盘处';
Count := 8;
Index := 1;
if nId<=nCount then
begin
if (bytetype(sltemp.Text[nid],1)=mbSingleByte )then
begin
Memo1.Text:=Memo1.Text+slTEMP.Text[nId];
inc(nId);
end else
begin
Showmessage('it ia a character');
memo1.Text:=memo1.Text+sltemp.Text[nid]+sltemp.Text[nid+1];
inc(nid,2);
end
end else
Timer1.Enabled:=False;