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