Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Basic READ EVENTS stuff
Message
De
22/06/2009 10:36:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
21/06/2009 23:34:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01407483
Message ID:
01407549
Vues:
78
>2) What is the READ EVENTS really doing?

READ EVENTS can be thought of as an endless loop, waiting for user input.

Your main program - which might be called main.prg or something similar - consists of three parts:

1. Any setup code that should run on startup
2. The single line, READ EVENTS
3. Any cleanup code that should run when your application finishes.

Any setup code comes before the READ EVENTS, cleanup code after the READ EVENTS.

The READ EVENTS waits for user input (menu selection, click on a button, etc.); when processing of that user input finishes, Visual FoxPro goes back to the READ EVENTS, to wait for further user input.

You can break out of the READ EVENTS with the command CLEAR EVENTS - for example, when the user gives the menu command "File | Quit".
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform