....
....
buffer:=copy(buffer,ipos,length(buffer)-ipos+1);
ipos:=pos(#13#10,buffer);
buffer1:=copy(buffer,1,ipos-1);
buffer:=copy(buffer,ipos+4,length(buffer)-ipos+1);
ipos:=pos(#13#10,buffer);
buffer2:=copy(buffer,1,ipos-1);
buffer:=copy(buffer,ipos+4,length(buffer)-ipos+1);
ipos:=pos(#13#10,buffer);
buffer3:=copy(buffer,1,ipos-1);
ipos:=pos(#13#10+'电',buffer);
if copy(buffer,ipos+2,2)='电' then
begin
buffer:=copy(buffer,ipos+2,length(buffer)-ipos+1);
ipos:=pos(#13#10,buffer);
buffer4:=copy(buffer,1,ipos-1);
end
else
buffer4:=' ';
ipos:=pos(#13#10+'传',buffer);
if copy(buffer,ipos+2,2)='传' then
begin
buffer:=copy(buffer,ipos+2,length(buffer)-ipos+1);
ipos:=pos(#13#10,buffer);
buffer5:=copy(buffer,1,ipos-1)
end
else
buffer5:=' ';
ipos:=pos(#13#10+'E',buffer);
if copy(buffer,ipos+2,1)='E' then
begin
buffer:=copy(buffer,ipos+2,length(buffer)-ipos+1);
ipos:=pos(#13#10,buffer);
buffer6:=copy(buffer,1,ipos-1)
end
else
buffer6:=' ';
query1.Close;
query1.SQL.clear;
query1.sql.add('insert into dbo.Experts(SummaryPageID,LastName,FirstName,Institution,MailingAddress,Email,Phone,FullName,Fax) values(1125,"'+buffer1+'","'+buffer1+'","'+buffer2+'","'+buffer3+'","'+buffer4+'","'+buffer5+'","'+buffer1+'","'+buffer6+'")');
query1.execsql;