Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read events
Message
From
01/08/2003 20:13:19
 
 
To
01/08/2003 17:30:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00816040
Message ID:
00816101
Views:
18
You know, I've often wondered about the 'Read Events' clause myself over the years. Is there ever a time when processing is not desired? Why doesn't VB need it? I realise it's been like this forever, but I never really understood why an event driven language, which VFP purports to be, needs this. Why isn't it simply automatic like it is in VB. Afer all, is there a situation when one wants to write programs using only modal forms, or to have the form simply flash on the screen momentarily before the program ends? To put it another way, how many programs have you written without 'Read Events'. Personally I can't recall ever having done it.

To the best of my recollection, it was never required in Delphi either.

Alan

>>I seem to need the read events command to start event processing, but through the years, my program craps out many times at this command which I issue in the main prg. What is the deal with the read events command? What actually is it for and why does it seem to give me so many problems?
>
>The READ EVENTS command will establish a sort of "infinite loop". It will wait for user input. When an event occurs, VFP will process it, but then go back to the READ EVENTS, and wait for further input.
>
>To quit this "loop", use CLEAR EVENTS somewhere, for instance, from the menu item "File | Quit" in your menu.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform