Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Kickin around memory variables?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Kickin around memory variables?
Divers
Thread ID:
00510941
Message ID:
00510941
Vues:
67
I have a form with pageframes. It worked beautifully with buffering. But I dumped buffering and switched to SCATTER MEMVAR MEMO and GATHER MEMVAR MEMO at the request of my leader. Consequently, I am still debugging the form with pageframes. Here are some questions that I am pondering that weren't there before.

1. I thought SCATTER created memory variables from fieldnames, but yet they don't seem to save on a GATHER unless I declare the variables as PUBLIC. I thought SCATTER took care of that for me? Huh?

2. I am confused as to when I need the "m." in front of the variable name. Some references seem to work without it while some seem to require it to work properly. Should I always use m.variable as a rule when using SCATTER/GATHER.
In all code referencing the field and in all controls Control Source put the "m."?

3. I also noticed that only the top pageframe form fields were saved when I did GATHER MEMVAR MEMO. It seems that the second and third pageframes within the same form had form fields did not save when I did a GATHER MEMVAR MEMO. I suppose if I declare those fields as m.fieldname using PUBLIC fieldname the fields will save properly.

Thanks for helping me to better understand this.
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform