>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).