Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shortcutmenu
Message
From
15/05/2016 03:20:21
 
 
To
15/05/2016 03:08:58
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:
01636386
Views:
52
>
>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.
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform