Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MessageBox Question
Message
De
28/07/2003 23:48:13
 
 
À
28/07/2003 21:33:23
Rene Lovino
Bigfoot Global Solutions, Inc
Cebu, Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00814002
Message ID:
00814423
Vues:
10
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform