Actually I am taking Text File in a Cursor , Updating it as per my requirement and again rewriting it back in the text Format.
I need to insert Page Switching command after BEGINSETUP.
last part of SCAN...ENDSCAN is because I need to re-write my file after necessary updates have been made on it.
>Hi Harsh:
>
>For what I can see in your code, you recreate the cursor every time in the scan, so It seems that the part you are really interested in is not the cursor, but this text file:
>
>
>Set Textmerge On
>Set Textmerge To (m.NEWPATH) Noshow
>Scan
>\\<< TRIM(POS) >>
>\
>Endscan
>Set Textmerge To
>Set Textmerge Off
>
>
>
>¿Is this correct?
Harsh