Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with the Foxpro menu ??
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01042826
Message ID:
01042971
Vues:
17
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform