Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read Events
Message
 
 
To
31/12/2001 12:16:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00599428
Message ID:
00599431
Views:
10
>While testing two forms I kept getting cant find otherform.scx
>So i put in a main.prg then it flashed and went away.
>
>So then I put in read events after my do form firstform.scx
>and clear events after that.
>
>It no longer flashes it just hangs there.
>
>When I do a
>display memory to file "c:\memvar" noconsole
>I can see three of my variables that are public and the one var that is the
>form named getdir.
>If I want to kill these variables explicitly when i close the form and release back to main, do I
>Clear all or release all?
>or something else.
>
>I dont use OOP

Tom,
The READ EVENTS line puts FoxPro into a wait state. You need to issue a CLEAR EVENST to kill that wait state. In the Unload event of the form, you can have the following code:

clear events

When you exit the form, this code will execute and clear the wait state.

You don't need CLEAR EVENTS after the READ EVENTS because it won't be executed until after the READ EVENTS has been cleared.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform