Subject Re: do variable
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Tue, 25 Feb 2020 16:11:44 -0800
Newsgroups dbase.getting-started

On 2/25/2020 2:30 PM, Charlie wrote:
> HI.. I've tried a bunch of combinations and just can't get this to work.  I am trying to open menus.mnu as a variable.  Can anyone help?
>
> _app.menu = "menus.wfm"
> "do '&_app.menu'"  // I know this is wrong and have tried many variations on this theme!!!
>

Try:

// assign the whole command to a variable:
cmd = "do "+_app.menu
// execute the command:
&cmd.

Ken

--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm