Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trimming the empty line in TEXT...ENDTEXT
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00688574
Message ID:
00714205
Views:
16
Linda,
SCAN
   \\field1,field2
   \
ENDSCAN
This is what I do even though it looks a little odd, it performs fast and is cleaner than an IF or IIF() construct or adding a chr(13)+chr(10) to the end of the \\ line. I've never had it not output the right data. I've got an app that uses this to put millions of rows of data into BCP files for loading into a reporting database each weekend.

>seems to work. On the first few attempts it cut off the first row but I can't replicate that problem no so I'll consider it solved.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform