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
...
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