Guest_imported
New member
- Jan 1, 1970
- 0
At startup of my program I open a form that, if certain conditions are met, will open another form. Both of the forms have the same ShowWindow property of 2-As Top Level Form. I use the code below to test the condition and open the second form. The problem is that although the second form opens the initial form also stays open. Can someone look at the code below and offer suggestions.
if mpwd=currpwd
thisform.release()
do form mainform
endif
I've also tried reversing the sequence of commands. As in:
if mpwd=currpwd
do form mainform
thisform.release()
endif
This doesn't work either.
if mpwd=currpwd
thisform.release()
do form mainform
endif
I've also tried reversing the sequence of commands. As in:
if mpwd=currpwd
do form mainform
thisform.release()
endif
This doesn't work either.