>>>Dan;
>>>
>>>I think that would only work with files, Dan. I'm trying to import from a string without saving it to a file. I've worked out a routine, but I thought maybe it could be shorter, faster and simpler.
>>>
>>>Of course, writing each string to a file and then importing would be short and sweet, but probably needlessly slow...
>>>
>>
>>How about using STRTOFILE() to create the file, then using APPEND FROM?
>>
>>Tamar
>
>Yeah - my gut said avoiding disk writes would be faster. Thanks, tho.
David's solution is simpler than this, but you wanted to avoid disk access...
lparameter tcSting
create cursor cursorname (col1 c(20), col2 i)
lnRowCount = alines(laRows, tcString)
for each lcRow in laRows
lnColCount = alines(laCols, strtran(lcRow, ",", chr(13))
insert into cursorname (col1, col2) values (laCols[1], val(laCols[2]))
endfor