Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dissapearing memvar
Message
From
09/09/1998 08:33:34
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
09/09/1998 07:45:13
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00134402
Message ID:
00134422
Views:
13
>I have a form with a page frame.
>In the init of the page frame I scatter memvar
>
>When I look at the m. values they dissappear after the thisform.refresh
>
>The values on the first page of the page frame are correct, but the values in the other pages are empty.
>
>What's happening???

The variables that you create in the INIT of the pageframe are by default Private to that piece of code. Once the Init code finishes, the variables are automatically released.

So, either
a) PUBLIC the variables - Bad idea.
b) Add properties to the form, scatter the memvars, then copy them to the new form properties. - This is the best MemVar type solution.
c) You could add an array property to the form, scatter the memvars to an array, then ACOPY the scattered array to the Form property array. - A bit long winded and you will have meaningless array references appearing at design time in your form controls (but you get out of having to manually copy the variables).
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform