>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