Re: Newbie Question by Cindy
Cindy
Sun Nov 30 17:46:24 CST 2003
In news: 01f001c3b796$1e09c500$a501280a@phx.gbl,
anonymous@discussions.microsoft.com <anonymous@discussions.microsoft.com>
wrote:
> ... I put in in the load event of
> the form, now I get error
>
> unknown member pgfMaint
Here's how a VFP form comes into being - first Load() then Init(). Init
happens "from the inside out" so the Form will begin to Init(), then the
PageFrame, then the Page, then the controls on the page. When the controls
are done the Page will finish its Init(), then the PageFrame, then the Form.
The controls, for example your text boxes, don't really exist until they
finish their Init(). Code in these methods runs "on the way out" not "on the
way in."
I should have qualified my "anywhere in the form" to say that it would only
work when the form was fully instantiated.
Will it work for you if you put the code in the Init() of the text box
itself?
--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
cindy.winegarden@mvps.org www.cindywinegarden.com