Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shortcutmenu
Message
From
16/05/2016 03:31:19
 
 
To
15/05/2016 03:20:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Application:
Desktop
Miscellaneous
Thread ID:
01636289
Message ID:
01636425
Views:
51
>>
>>Antonio,
>>
>>Wow, how difficult can this be??
>>Now erroring: ToForm is not an object ;(
>>
>>suppose I must work with the pubic variables, which worked. ;((
>>
>>regards,
>>
>>Koen
>
>If VFP is complaining on toForm not being an object, then the problem is in the way you're calling the menu.
>
>It must be:
>
>
>DO the-name-of-the-menu.mpr WITH Thisform
>
>
>if inside a method/event code of the form or one of its objects, or with an explicit reference to the form in other cases.
>
>Otherwise, toForm is an .F., as any other unused but declared parameter.

Antonio,

Thanks a lot for your correct remarks. Shortcut menu now works perfectly and I got rid of those public-variables.

Regards,

Koen
Previous
Reply
Map
View

Click here to load this message in the networking platform