Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Losing Public Variables When Form Runs
Message
From
18/06/1999 09:12:08
 
 
To
17/06/1999 20:28:10
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00231160
Message ID:
00231323
Views:
14
>I'm trying to scatter memvar and have various object values set by the refresh method dependant on the value of those memory variables. I wrapped my head around why they should disappear when running any method - because they weren't public.

While I don't have an answer, here's a suggestion that I hope doesn't require too much changes.

In VFP, you can Scatter Name <var name goes here>. What I suggest is to create a form property, say MemBuffer, and instead of calling Scatter Memvar and Gather Memvar, use Scatter Name ThisForm.MemBuffer and Gather Mame ThisForm.MemBuffer.

Of course, it still requires that you create the property for all your forms and find/modify all those Scatter/Gather statements. Not a perfect solution, I admit...

(Look the help for Scatter for more info on the Name clause)

HTH!
Sylvain Demers
Previous
Reply
Map
View

Click here to load this message in the networking platform