Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with the Foxpro menu ??
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01042826
Message ID:
01042971
Views:
18
Create a class called EventHandler. Add a method callecd MenuClick().

Then each menu command can be set to EventHandler.MenuClick().

In MenuClick, have a CASE:
cPrompt = lower(prompt())

do case

  case cprompt = "menuprompt1"
    do somecode

  case cprompt = "menuprompt2"
    do somecode

endcase
>I have a foxpro menu running in a top level form that accesses methods on that form by _screen.activeform.method(). On the whole this seems to work fine, but every now and again Foxpro seems to lose itself (or it could be my coding!) and present me with an error method() doesn't exist.
>
>Is there a better way of accessing these methods from the menu.
>
>Many thanks in advance for any help on this subject
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Reply
Map
View

Click here to load this message in the networking platform