Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
READ EVENTS
Message
 
To
17/10/1998 23:30:48
Man Wai Chang
Hang Hing Metal Manufacturer
Hung Hom, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00147894
Message ID:
00147898
Views:
26
What you've observed is by design. READ EVENTS is not terminated when there is no active form. This allows you to just put up a menu and wait for the user to select an option. You'll need to CLEAR EVENTS if you want VFP to go to the next line. If all you're doing is displaying a form and waiting for the user to close it, you can dispense with the READ EVENTS altogether by making the form modal.

>Just in my path to migrate to Visual FoxPro.
>
>in a simple program like this:
>
>aform=createobject("form")
>aform.show()
>read events
>
>After aform is closed, the READ EVENTS didn't return
>control to the next line (in my case, the
>FoxPro's command window).
>
>Isn't READ EVENTS terminated automatically when there is
>no active form? For now, I must include a "CLEAR EVENTS"
>in aform.unload().
Previous
Reply
Map
View

Click here to load this message in the networking platform