Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Differences in READ (FP 2.*) and READ EVENT (VFP 3.0)
Message
De
12/08/1998 08:58:46
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00125874
Message ID:
00125961
Vues:
12
There's only one event loop in VFP and it's the READ EVENT. VFP stays in the READ EVENT until it encounter a CLEAR EVENT.

So, in your main PRG, you call your menu and issue a READ EVENT. The user can then select options that bring up forms and switch between them freely. Assuming that you have an option in the menu called "Exit", you place a CLEAR EVENT in this menu command to get out of the application.

HTH

>The examples in VFP use READ EVENT. Although I know that it goes into an event loop and once it finishes, the line after READ EVENT is executed, but what is the event loop for menus, forms? Or isit
>to keep track of simple mouse/keybrd events, so that once a mouse
>or keybrd event is captured, the loop exits and executed accordingly.
>
>The reason is because I would like to call a *.prg file from the menubar items. That implies that the execution of the prg file is
>witin the READ EVENT loop. Is that legal?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform