Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Losing Public Variables When Form Runs
Message
De
18/06/1999 09:12:08
 
 
À
17/06/1999 20:28:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00231160
Message ID:
00231323
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform