Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textmerge problem
Message
From
21/03/2007 07:57:32
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
21/03/2007 05:52:11
Victor Lapid
Phil. Long Distance Tel. Co.
Manila, Philippines
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01206413
Message ID:
01206443
Views:
32
This message has been marked as the solution to the initial question of the thread.
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform