假设xxx是你得到的id=3&id=5&id=4&id=6&id=7
strid:='';
while pos(1,'&',xxx)>0 do
begin
strid:=strid+left(xxx,pos(1,'&',xxx)-1)+',';
xxx:=right(xxx,length(xxx)-pos(1,'&',xxx));
end;
strid:=strid+xxx;
假设xxx是你得到的id=3&id=5&id=4&id=6&id=7
strid:='';
while pos(1,'&',xxx)>0 do
begin
strid:=strid+right(left(xxx,pos(1,'&',xxx)-1),length(left(xxx,pos(1,'&',xxx)-1))-3)+',';
xxx:=right(xxx,length(xxx)-pos(1,'&',xxx));
end;
strid:=strid+xxx;