Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form flashes briefly (read event prob?)
Message
 
To
09/05/1997 12:29:34
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00031377
Message ID:
00031587
Views:
45
>>>>Sorry about the upper(). I took your advice it did something.
>>>>The form no longer gets ignored but the program itself does not continue after the form executes but seems to be hung up.
>>>
>>>you have to issue clear events, after read events to terminate the program.
>>
>>I am supposed to do form getname, then issue read event, then issue clear event,then do menu mymenu? It still seems caught in that infinite loop :(
>
>Basically, VFP app should contain just one common READ EVENTS. Following is a sample of first prg module
>
>*** set environment here
>do mainmenu.mpr
>read events
>*** clean environment here
>
>Your main menu should have 'Quit' option with CLEAR EVENTS command.
>Also remember that modal form will 'stop' app until you close it.

My test prg is this simple but gets hung on the read event( as the trace windows told me) as follows:
clea
do form getname
?'hi'
read event
@10,10 say 'here now'
clea event
in the form the 'ok' button has a command in the code section that says
"release thisform"
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform