Ken Mayer [dBVIPS]
2008-10-21 04:15:09 UTC
I am using 2.6.1.5 and am having a problem calling one modal form from another modal form. I am calling frmtest2 from frmtest1. After I call frmtest2, I ? a test message in the command window. This test line should not be printed until the frmtest2 form is closed. However, the test message is printed immediately after the DO frmtest2 and before the calling form is closed. To test, this just run frmtest1 and click the Ok button and when you check the command window, you will see that the "back from Test2" message is listed and the frmtest2 form is still open. What is going on ?
Function PB_OK_onClick// Do frmTest2.wfm
// change the above to:
Do frmTest2.wfm with true
// the "with true" part forces it to be completely modal
? " back from test2 via PB_OK_onClick"
return
The other problem: put something on frmtest2.wfm that can get focus,
like an entryfield or pushbutton ...
Modal Forms don't open properly unless something on them can get focus.
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase/dBASEBooks.htm
http://www.goldenstag.net/dbase