Hi,
I've created a menu using the wizard in VFP. One of the option contains a command: DO myprg.prg
In myprg.prg I've created my form using
frmMyForm = CREATEOBJECT('Form')
along with the inside objects with
frmMyForm.AddObject('txtlcNumSrch','TextBox')
after I instantiate the objects in order to run the form I have something like this:
frmMyForm.SHOW
READ EVENTS
The myprg.prg program runs fine alone, but when I use the menu by do menu1.mpr and try to run the myprg.prg program from the menu the form does not appear on the screen, just a very fast change on the screen.
What I should do to make my program runable from the menu
I've created a menu using the wizard in VFP. One of the option contains a command: DO myprg.prg
In myprg.prg I've created my form using
frmMyForm = CREATEOBJECT('Form')
along with the inside objects with
frmMyForm.AddObject('txtlcNumSrch','TextBox')
after I instantiate the objects in order to run the form I have something like this:
frmMyForm.SHOW
READ EVENTS
The myprg.prg program runs fine alone, but when I use the menu by do menu1.mpr and try to run the myprg.prg program from the menu the form does not appear on the screen, just a very fast change on the screen.
What I should do to make my program runable from the menu