Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Low level commands
Message
De
27/03/2001 01:59:16
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
27/03/2001 01:27:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00488740
Message ID:
00488855
Vues:
9
>>The 7's Set Text to Memvar will be the ticket, of course, building the text in the variable using textmerge, and then dumping it into a file, message, webpage... mmmm :)
>
>You mean VFP7's TEXT TO lcString? Why create it as a variable and then dump to a file? Thats a slow step if the string is big. In any case, have you played with teh TexctMerge() function? I like that one a lot.

Thanks for pointing that one out. Seems like a nice candy - I remember I had to juggle a lot when I was writing the contract generator (user-inserted fields in a template stored into a memo, where fields were picked from a list), and I had to do the beast twice, just because I had to insert my own carriage returns in order to print it nice on a dot-matrix. A sweetie like this would have saved me a lot of coding.

As for the size of the file/string, again it depends on what you're doing, and on your own benchmarking. If you keep it in a string, you can still manipulate it using strtran() and other stuff(), which may be handy in some cases. If you're building a big one sequentially (i.e. never touching the part you already created), textmerge. As usual, the unbeatable answer "it depends" :)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform