>>>See my last reply to Cetin Basoz. I explain the pageframe GATHER problem further and how it works and doesn't work, with and without PUBLIC fieldnames in the form init.<<
>
>I wouldn't beat myself up too much on this issue; the simple fact is that when you set a .ControlSource to "m.Something", VFP will "dynamically" create a corresponding memvar at various times if the memvar does not exist. However, in all cases, these are PRIVATE memvars and will go out of scope when the method that created them ends (eg. Init or whatever).
>
>FWIW, here's a routine to create PUBLICs so you don't have to create them "manually":
>
>
>
> = Create_Publics( "< alias >" )
>
>PROCEDURE Create_Publics
> LPARAMETER TC_Alias
>
> LOCAL i
>
> FOR m.i = 1 TO FCOUNT( m.TC_Alias )
> PUBLIC ( FIELD( m.i, m.TC_Alias ) )
> NEXT
>
Gerry,
With the way Steve creates (controlsource=m.something) variables are not private but public. For that reason I tried hard to say he needn't to declare as public but a refresh problem. He'd see variables even after closing the form in memvar list (if just walked pages w/o setting focus to boxes then only the first page set, if setfocus to all at sometime then all - I don't know the reason possibly performance consideration).
Cetin