>HI Sergey
>
>Thanks for the code. I will give it a try. The ASC stuff can show up or one or the other, or both, in any given record. If both, they are separated by a couple of spaces. I think I can fiddle with your code to make it run.
>
>The real slow down is in getting the text file into the memo field:
> LOCATE FOR (which is an indexed expression on say, an invoice number)
> REPLACE &tcMemoField WITH ALLTRIM(lcCleanStr) IN NewTable
>(which has to be used to allow for the string manipulation).
>
>Individual records have alredy been added to NewTable from a legacy table, and the text files then have to be matched to specific records. It looks like the long conversion times will have to be lived with.
>
Don,
I don't know if it would be faster or not but you can try APPEND MEMO to the cursor or temp. table and then process memos from there.
--sb--