Jan,
>The error occurs on the 5th line in the above code when lnLength = LEN(lcMenuBars) and the SUBSTR( ) method tries to access characters beyond the length of the string lcMenuBars. Interestingly, this code has not be modified from the last version and it does not produce the same error. I've temporarily fixed the problem by setting lcMenuBars = "" when lnLength = LEN(lcMenuBars), and the application seems to work fine>
Here is a message posted by BOb Archer a few days ago that will fix this situation...it is related to the setting of SET TALK:
"If you followed the directions in the What's New doc, you would have added an aglobalenvironment object to your aapp library. If you modify that class, there is a cSessionEnvironment class in it.
If you set cTalk to off that will become the 'global' settinging used the the cSessionEnvronment on the business form is loaded."
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com