Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu not found when exit 2nd app. back to first app.
Message
 
 
À
27/04/2004 12:11:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00898527
Message ID:
00898586
Vues:
17
Beth,

You've to use Name expression if menu name is stored in variable.
push menu (gcMenuUsed)
DO ALLTRIM(cExeString) WITH .T.
pop menu (gcMenuUsed)
However, I think than George is right about using PRG's instead of menu snippets to fix this problem.


>I put a push menu command into my code and ran it, it came back and told me that it needed to be defined by the DEFINE Menu command. I went back in and changed it to the name in the mpr file (which was _msysmenu) and ran it again after the build and it came back with the same error.
>defined in mainprog:
> gcMenuUsed = "_msystem"
>
>code in form that calls new app:
> push menu gcMenuUsed
> DO ALLTRIM(cExeString) WITH .T.
>
>code in 2nd app going back to first:
> pop menu gcMenuUsed
>
> IF(gncalledfromtrnrpt = 1) THEN
> lcExeString = ALLTRIM(cHelpString + "TRNRPT.EXE")
> DO ALLTRIM(lcExeString)
>
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform