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--