Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make Create Connection ? a Modal screen
Message
From
01/04/2001 09:05:54
 
 
To
31/03/2001 23:57:59
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00490677
Message ID:
00490712
Views:
15
You can use Read Events command and a Timer, here is an example:
...
_Screen.AddObject( "ClearEventsTimer", "ClearEventsTimer")
...
Create Connection ?
_Screen.ClearEventsTimer.Enabled = .T.
Read Events
...
&& somewhere in your program or in VCX
Define Class ClearEventsTimer As Timer
    Enabled = .F.
    Interval = 300
    Procedure Timer
        If ! WExist( "Connection Designer")
            Clear Events
            Release This
        EndIf
    EndProc
EndDefine
Hope this helps.

Alex

>I want to use the ODBC connection designer as a modal screen while I am in an APP to allow a user to create or update an existing ODBC conneciton.
>
>When I run CREATE CONNECTION ? I get the conneciton designer but it immediately returns control to my program and I loose the focus of this screen. I want to stop processing my app until the user closes the connection designer.
>
>Any help would be appreciated.
>
>Demetrius
Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform