Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to detect a messagebox
Message
 
To
13/06/2002 11:38:51
Terry Davis
Enhanced systems consulting
Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00667583
Message ID:
00668058
Views:
23
You can hide window dialog box.
Try this.
LOCAL lnH
LOCAL ARRAY laErr[1]

lnH = 0
SQLSETPROP(lnH,'DispLogin',3)
lnH = SQLCONNECT("universe","username","password")
IF lnH < 0
	AERROR(laErr)
	MESSAGEBOX(laErr[3],16,"Database connection fails")
ELSE
	MESSAGEBOX("Database connection Ok",64,"Ok")
ENDIF
>Stev,
>I forgot to mention that the erro messagebox is from a SQL server message indicating "connection failed" SQL Server error 4060.
>The messagebox appears before the error handler in the vfp program is even aware that an error has occurred.
>I was wondering if there may be an API that would indicate the messagebox was there.
>
>When the mb appears it requires the user to click OK button [keyboard {enter}] and then the sql login window pops up requesting user interface OK or Cancel.
>
>I need to programmatically determine when the window is there.
>
>Any ideas?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform