Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scatter memvar
Message
De
19/10/1999 16:40:45
 
 
À
19/10/1999 14:41:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00278401
Message ID:
00278475
Vues:
16
Adrian,

As John has stated, it is not a good idea to mimick 2.6 style code in VFP.

You will get into serious trouble if you try to use memory variables as in 2.6. Right away I can tell you that you will have a problem as the Activate method fires all the time someone ALT Tabs out of VFP, then back. Do you want to reinitialize your memvars like that???

PF

>I'm converting a FoxProDOS 2.6 app to VFP6. I hoping to not rework all the Scatter/Gather code from the original, but I'm having trouble understanding the scope of the Scatter'ed "m.variables".
>
>If I Scatter in the Activate method of the form, m.vars that are bound to controls will persist even after the form is unloaded.
>
>On the other hand, m.vars that are not bound to a control don't persist outside the Activate method.
>
>What are the rules here?
>
>TIA, Adrian

(On an infant's shirt): Already smarter than Bush
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform