Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modeless Forms are not objects !?!?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00226135
Message ID:
00226194
Views:
25
>Hi All:
>
>Im Using VFP6 and i have this Problem :
>
>I Have a form that as its shortcut menu (you can Rightclick on the form and have a menu to do somethings), in this shortcut menu i refer to some form methods like Myform.Mymethod().
>It all works fine in a MODAL form but if i change the type of the form to MODELESS when i try to run the shortcut menu gives an error :
>
>Object Myform is not found
>
>So ... what is it? Modeless Forms are not objects ?

Pedro,

Modeless forms are objects they just don't always have the name you expect. Make your menu code generic by referring to _screen.activeform.Whatever
Previous
Reply
Map
View

Click here to load this message in the networking platform