Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MessageBox Question
Message
De
28/07/2003 06:15:21
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
28/07/2003 05:42:44
Rene Lovino
Bigfoot Global Solutions, Inc
Cebu, Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00814002
Message ID:
00814007
Vues:
11
>Hi All,
>
>Is anybody there have an idea on how to determine if the messagebox window appear on the screen or form?
>
>I want to create an automated program that will automatically test my application.
>This application is responsible of inputting data to my screen.
>
>Below is my sample code.
>
>keyboard '{alt+t}' && This will trigger my "Transaction" short cut form the menu.
>keyboard 'i' && This will invoke the "Invoice" funciton.
>doevents
>
>_screen.ActiveForm.CustomerNoText.SetFocus()
>_screen.ActiveForm.CustomerNoText.value = 'CUSTOMER01'
>
>keyboard "{enter}"
>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. But before I can pass the keyboard command I need to determine first if the messagebox display on the screen.
>
>Is it possible to determine it?
>If possible, How?
>
>Any idea would be greatly appreciated.
>
>
>Thank you very much in advance.
>
>
>Rene

Rene,
Since that messagebox shows up under a special condition you could check the condition too or where it's checked place your keyboard after messagebox().
In VFP7 and later you could have 4th parameter (timeout) filled, so it advances automatically with your default button.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform