Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form with Public/local/private memory variables
Message
De
10/12/2000 12:25:00
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00451344
Message ID:
00451356
Vues:
30
>I don’t know too much about memory variables, and only just a little about VFP programing.
>
>I have an application that has a main form, containing a pageframe with pages.
>
>My application works fine, but in the load event, I have all of my memory variables first declared as PUBLIC (Public, followed by all of the variable names)....,

What Larry and Cindy told you is correct, but they also neglected to tell you that the way you are trying to do this is the wrong way to go in VFP. You're working too hard. While SCATTER and GATHER might have been the way to do homegrown buffering in FP 2.x, in VFP, we have real buffering, and you can save or roll back changes with TABLEUPDATE() and TABLEREVERT(). So you can bind your controls directly to fields in a table or view. Look these up in the documentation, and also look at GETFLDSTATE(), GETNEXTMODIFIED(), CURVAL(), and OLDVAL().
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform