Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Show(1) does not hold
Message
From
23/08/2004 14:07:39
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Show(1) does not hold
Miscellaneous
Thread ID:
00935656
Message ID:
00935656
Views:
56
Below is a code snippet that I have in my application. If I do not have a good connection from the connect table I want to conditionally show the connection form and stop the processing until that modal form completes.

The thing is that the code is going thru to the main form no matter what I do. How can I conditionally show the connect form and stop any subsequent processing until that modal form completes?
 SELECT good_con FROM Connect WHERE default INTO ARRAY lax
 IF lax[1,1] = .F.
   DO FORM connection WITH .T. && make it modal
*-- Capturing the .T. value in the INIT() for form and doing This.Show(1) if modal
 ENDIF
 
 oMainform = NEWOBJECT( "frmtsmain", "frmtsmain.vcx" )
 IF VARTYPE(oMainForm) = "O"
   oSplash.Release()
   oMainform.show()
   ON SHUTDOWN clear events
   READ events
   ON Shutdown   
 ENDIF
Next
Reply
Map
View

Click here to load this message in the networking platform