On my main project form, I have a button that opens another form to get input from the user to determine where it goes next. Specifically, what page on a pageframe and which pages will be available.
My calling button has this code:
public waithere
waithere=.t.
thisform.lockscreen=.t.
do form pmenu2001
*do while waithere
*enddo
release waithere
thisform.lockscreen=.f.
And the pmenu2001 form changes the public waithere to .f. when done.
The actual behavior is that both forms freeze.
Remming out the two lines as shown prevents the lockup, but does not behave the way I want.
How can I make one form wait for another before continuing?
Thanks for any suggestions.
My calling button has this code:
public waithere
waithere=.t.
thisform.lockscreen=.t.
do form pmenu2001
*do while waithere
*enddo
release waithere
thisform.lockscreen=.f.
And the pmenu2001 form changes the public waithere to .f. when done.
The actual behavior is that both forms freeze.
Remming out the two lines as shown prevents the lockup, but does not behave the way I want.
How can I make one form wait for another before continuing?
Thanks for any suggestions.