Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Write Data of DBF file in Text File
Message
From
11/03/2013 13:25:45
 
 
To
11/03/2013 10:34:00
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01567961
Message ID:
01568003
Views:
58
>Thanks Sir,
>I tried the following code and it is working fine.
>
>
>SELECT Dummy
>set textmerge to Myfile.ps
>scan
>\<< tRIM(pS) >>
>endscan
>set textmerge to
>set textmerge off
>
>
>
>The code is Working fine and the file size is also small. Only one little problem. The First Line in the reprocessed output file is coming blank as compared to the original file Ps/text file where the PS code starts from the first line itself.
>
>kindly help
>

That's because you're using \ rather than \\. When you do textmerge with \, you get a return before the line. Try it this way:

>
SELECT Dummy
set textmerge to Myfile.ps
scan
\\<< tRIM(pS) >>
\
endscan
set textmerge to
set textmerge off
Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform