>Hi to all,
>
> Im using textmerge command in vfp to create a text file from a dbf table. The problem is after the text file has been created, the first line of the text file contains blank (space). VFP always writes the data on the 2nd line.
>How do I correct my code wherein data should be written on the first line of the file?
>THanks in advance.
>
>Sample code:
>set TEXTMERGE ON
>OutADSLSOPFile="adslsop"+SUBSTR(DTOC(DATE()),7,2)+SUBSTR(DTOC(DATE()),4,2)+SUBSTR(DTOC(DATE()),1,2)+SUBSTR(TIME(),1,2)+SUBSTR(TIME(),4,2)+".txt"
>SEt TextMErge to "C:\DSL\"+OutADSLSOPFile NOSHOW
>SCAN
>\WORK_ASGN_ID=
>\\<
>
>\OPERATION_ID=
>\\<>
>\OPERATION_MODE=
>\\<>
>\
>eNDscan
Start with \\
Also you can do it with a single "copy to" command.
Cetin