Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No Refresh when using formclass
Message
From
26/05/2012 03:47:30
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01544463
Message ID:
01544494
Views:
55
There are some subtle differences in call and instantiation order of forms,
depending on how they are called and sometimes on how they are [object] structured.
Drew Speedie was famous for checking out theses hard to spot things -
look up his session notes in some older conference folder or try to find them online.

As forms were used as biz objects sometimes, creating them programmatically and not
entering the GUI part is necessary if you want to run such forms on a web server.
Early vfp had less options of tweaking....

regards

thomas

>I have a formclass with code in the Refresh Method of certain objects. To my understanding all refresh methods are called as the final stage of the Init Event. However, in my case this doesn't occur if I instantiate the form with newobject(). It does occur if I call a form (scx) that is completely the formclass (vcx). There's no additional code in the scx. Who can explain this?
>
>This works well:
>
do form mpsjob
>read events
>
>This does not do the refresh as the final stage of the init, not even if I explicitly call it (2nd line):
>
loWindow = newobject( 'viafrm_viajob', 'viajob.vcx' )
>loWindow.refresh()
>loWindow.visible = .t.
Previous
Reply
Map
View

Click here to load this message in the networking platform