Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textmerge Causing Fatal Exception
Message
From
04/05/2003 16:58:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
04/05/2003 16:42:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00784722
Message ID:
00784726
Views:
16
>Any thoughts would be greatly appreciated. Otherwise, I need to switch back to the old concatenation technique.

Another option is to use the "?" and "??" commands. That is what I usually use, to create text-files.

IIRC, the commands are something like this:
SET ALTERNATE TO MYFILE.TXT
SET ALTERNATE ON
SET CONSOLE OFF

?? "First line"
? "Second line"
? "Third", "line"

SET CONSOLE ON
SET ALTERNATE OFF
SET ALTERNATE TO

modify command myfile.txt && to check the results
Other options include @..SAY, and LLFF.

All of these options are probably faster than concatenation.

You may want to create a class, with wrappers for functions like "open text file", "close text file", "output a line", etc. - that way, if you later find it convenient to use "@...say" instead of "?", for instance, you only have to change this in one single place. Or just use my download #9991, which already has these wrappers.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform