M
mawei0913_green
Unregistered / Unconfirmed
GUEST, unregistred user!
for i:=0 to round(Length(trim(ADOQuTD.FieldByName('候车室').AsString))/2)-1 do
begin
str_int:=strtoint(MidBStr(trim(ADOQuTD.FieldByName('候车室').AsString),(i+1)*2-1,2));
if str_int>0 then
begin
adoqtmp.SQL.Text:='select * from tr_hcs where houche_id='+inttostr(str_int);
adoqtmp.Open;
Str_tmp:=Str_tmp+' '+Trim(adoqtmp.fieldbyname('Houche_name').AsString);
end;
end;
我想知道的是:
str_int:=strtoint(MidBStr(trim(ADOQuTD.FieldByName('候车室').AsString),(i+1)*2-1,2));
Midbstr(....)里面的具体的什么意思;),(i+1)*2-1代表什么意思
请各位高人给予指点!
begin
str_int:=strtoint(MidBStr(trim(ADOQuTD.FieldByName('候车室').AsString),(i+1)*2-1,2));
if str_int>0 then
begin
adoqtmp.SQL.Text:='select * from tr_hcs where houche_id='+inttostr(str_int);
adoqtmp.Open;
Str_tmp:=Str_tmp+' '+Trim(adoqtmp.fieldbyname('Houche_name').AsString);
end;
end;
我想知道的是:
str_int:=strtoint(MidBStr(trim(ADOQuTD.FieldByName('候车室').AsString),(i+1)*2-1,2));
Midbstr(....)里面的具体的什么意思;),(i+1)*2-1代表什么意思
请各位高人给予指点!