Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memory Pre-Allocation Trick?
Message
De
12/11/2002 16:09:35
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00721182
Message ID:
00721812
Vues:
30
>OK, good points (Al too). It's not just 8k of space, it's 8k x running threaded processes, but I get your point about looking elsewhere to optimize.

One good technique, regarding string composition, is to avoid stuff like
lcString=" some text here "+lcVariable1+chr(13)
lcString=lcString+" more text here "+lcVariable2+chr(13)
lcString=lcString+" yet more text here "+lcVariable3+chr(13)
because it can be done as
text textmerge to lcString noshow
some text here {{lcVariable1}}
more text here {{lcVariable2}}
yet more text here {{lcVariable3}}
endtext
(I've assumed Set Textmerge Delimiters to be {{ and }} so the html parser wouldn't treat them as tags.)

This specially makes sense when you're building a webpage and have a lot of such stuff. The only downside to this is that you can't nest it, i.e. if one of the expandable things is a function call, the function can't do its own textmerge.

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform