>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).