Y=strtran(_cliptext,CHR(9),SPACE(3)) && I dislike tabs in source ... they cause selection irregularities FOR N=OCCURS(CHR(13),Y) TO 1 STEP -1 && loop through lines in source, make whitespace go away bol=IIF(N>1,ATC(CHR(13),Y,N-1)+1,1) && find beginning of line eol=ATC(CHR(13),Y,N) && find end of line txtline=SUBSTR(Y,bol,eol-bol) && determine text in line * take the line and do something with it insert into 'mytable' (myfield) values (txtline) && insert line into cursor ENDFOR