Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where should I put READ EVENTS in main?
Message
 
To
10/10/2001 11:37:50
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00566462
Message ID:
00566516
Views:
13
>do form mbappform
>read events
>
>
>Should the READ EVENTS be the last item? I guess I don't understand fully
>what READ EVENTS does. I know it starts "event processing" which I believe
>is the "processing" of commands, buttons, code, etc.

What it does is stop the flow of the program it's in. When you run your form, the initialization code will run, and then the form will just sit there until it is released or the application ends. If the form is not modal, and if there's nothing to stop the application from ending, the form will disappear immediately.

However, if you have a READ EVENTS, the application waits on that command, letting you choose menu items, form controls, etc., until there is a CLEAR EVENTS, which lets the application continue past the READ EVENTS. If you have code before the READ EVENTS, it will execute before you get there, and a CLEAR EVENTS will have no effect, since you aren't in the READ state yet.

Does this make sense?
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform