Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Kickin around memory variables?
Message
From
24/05/2001 14:31:32
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00510941
Message ID:
00511111
Views:
18
Steve,
Since all should be similar I'd like to see one of textbox's properties (nondefault).
If say Controlsource is m.Fieldname vs Value then it should work w/o declaring public because an implicit public declaration done.
Cetin

>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.
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform