Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Merging with a textfile
Message
 
 
À
22/11/2000 16:44:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00426538
Message ID:
00444774
Vues:
15
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform