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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement