Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thisform.Refresh vs This.Refresh (Container)
Message
 
 
To
01/11/2005 03:31:22
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01063678
Message ID:
01063966
Views:
12
>I've set up a test. One form, one pageframe.
>On page3 first activate, a container (class with one textbox) is added and textbox' controlsource is set
>Subsequent activates of page3 call container.activate() which does 'this.Refresh()'
>
>On the form I have also a commandbutton which changes the table (controlsource of container's textbox in page 3)
>
>Deactivating page3, clicking the commandbutton, and then activating page3 is showing the correct value in the containers textbox. - as expected
>
>The container's textbox' Refresh() is called when container.Refresh() is called - as expected
>
>The only thing I can think of is that when you call your containers.Activate(), its parent page is not active - yet
>
>That is the only scenario that (1) does not trigger the container's textbox refresh (since the page is not active) and (2) would explain why a subsequent page.Refresh() or thisform.Refresh() works in your case. The page will be active by then - I guess

I see, sounds very logical and well fits our situation. We'll revisit this code today (for the time being we put thisform.refresh() in all these cases).

BTW, have you figured out yesterday that I was writing with William? <g> I put <g> in one of my reply to wink at you :)

William is a very nice guy and a talanted programmer, BTW...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform