Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MemoWidth
Message
From
01/10/2012 19:05:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01554024
Message ID:
01554101
Views:
50
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform