Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MemoWidth
Message
De
01/10/2012 19:05:04
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01554024
Message ID:
01554101
Vues:
49
>Which Event or Method is the proper place to address the MemoWidth setting?
>
>It seems to work properly for me when I place the 'set command to' in the init of the data session. That doesn’t seem right because I always thought the init was one of the last events to fire.
>
>Any thoughts or comments are welcome.

I use mline() in very few occasions, when I need to extract the first line or two and ignore the rest (although mline(lcString, 1, _mline) is blazingly fast in a loop) and creating an array with alines() may be an overkill. So I set memowidth to 1023 in the startup.

If anywhere else in the app I do need mline() or any other thing that is affected with set("memowidth") (if there are any, I can't remember), I use Tom Rettig's envlib to create an object which will preserve the old setting, and set the value to my current liking, and then restore the old setting when it's destroyed (as it will, I always create these as local).

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