Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Kickin around memory variables?
Message
 
To
24/05/2001 12:43:10
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00510941
Message ID:
00511105
Views:
18
Cetin,

I added
PUBLIC fieldname1 fieldname2
to the form init
and everything saves/works when I do GATHER MEMVAR MEMO.

When I remove PUBLIC fieldname1 fieldname2
from the form init
nothing saves when I do GATHER MEMVAR MEMO,
except the pageframe textboxes, editboxes and comboboxes that are in the top level pageframe within the form.

But I tend to agree with you that I shouldn't have to declare the variables as PUBLIC, but I don't know what else the problem might be. I did the "? fieldname1" and "? m.fieldname1" commands followed by a WAIT WINDOW command both, before and after the GATHER MEMVAR MEMO in my "Save" button. And it showed blanks(empty) values until I added the PUBLIC fieldname1 to the form init. Then it showed values to me.

I double-checked the code in the "Save" button and it matches the code in all my other forms' "Save" buttons that work, but the only difference being that this form has pageframes and the other forms do not. And on the non-pageframe forms I DO NOT have to declare PUBLIC variables for the fieldnames as I am doing for this particular form.
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform