Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form with Public/local/private memory variables
Message
From
10/12/2000 12:25:00
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00451344
Message ID:
00451356
Views:
29
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform