Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Merging with a textfile
Message
From
22/11/2000 16:49:39
 
 
To
22/11/2000 16:44:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00426538
Message ID:
00444774
Views:
9
Goodness, this is an old thread. :) I actually haven't gotten back to this, yet, so it's still useful. One of the many things I need to get to "when I have time".

Thanks,

Michelle


>Something like this
>
>mergeme("testme.htm")
>
>** mergeme.prg
>lparameters tcout
>set textmerge on
>set textmerge to (tcout) noshow
>
>** using the example table
>scan
>\The quick brown << allt(animal1) >> jumped over the lazy yellow << allt(animal2) >>.
>\\ The << allt(animal2) >> an after the << allt(animal1) >> and bit him.
>endscan

>set textmerge to
The double \\ continues the same line. The << and >> delineate some code that is to run. You could replace all the nouns, adjectives and verbs with << action >>. Better yet, you could have a noun table, verb table and adjective table and get a Cartesian product from them and produce all kinds of neat stuff <g>
>HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform