Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MessageBox Question
Message
From
28/07/2003 23:48:13
 
 
To
28/07/2003 21:33:23
Rene Lovino
Bigfoot Global Solutions, Inc
Cebu, Philippines
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00814002
Message ID:
00814423
Views:
9
This might help you if you are using VFP8. I'm not sure if HWnd is already in VFP7. See comments.
_screen.ActiveForm.CustomerNoText.SetFocus()
* Capture the .HWnd value of the invoice form
nWHnd = _screen.ActiveForm.HWnd
_screen.ActiveForm.CustomerNoText.value = 'CUSTOMER01'
keyboard "{enter}"
* Compare the current HWnd
if nWHnd # _screen.ActiveForm.HWnd && messagebox displayed
endif
>After this keyboard event there is a messagebox that informed the user that the customer have already exceed the credit limit. This ask the user where to proceed or not by clicking "Yes" or "No" button. I know that I can pass a keyboard event wether to proceed or not.

Are you running the EXE from a PRG? I'm not sure how to keyboard the modal messagebox().
ramil
~~ learning to stand still
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform