Function HTMLTabletoCursor( toTable ) Local ix,jx,lcTemp, lnHandle lcTemp = Forcepath('nsehtm.tmp',Sys(2023)) lnHandle = Fcreate(m.lcTemp) For ix=0 To toTable.Rows.Length-1 For jx = 0 To toTable.Rows[m.ix].Cells.Length-1 Fwrite(m.lnHandle,toTable.Rows[m.ix].cells[m.jx].innerText) If ( m.jx != toTable.Rows[m.ix].Cells.Length-1) Fwrite(m.lnHandle, ',') Endif Endfor Fwrite(m.lnHandle, Chr(13)+Chr(10)) Endfor Fclose(m.lnHandle) Create Cursor myData (f1 c(100),f2 c(100),f3 c(100),f4 c(100)) Append From ( m.lcTemp ) Type Delimited Erase ( m.lcTemp ) Browsewhy go via tmp file here ? Appending from an array filled in the loops should shorten the code of the function by half