Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do I need DoDefault() in Refresh()?
Message
 
 
To
10/03/2021 09:19:51
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01678879
Message ID:
01678883
Views:
28
>>>To call code in parent class. it also somehow calls the parent
>>>If there is no code in parent class, skip it
>>>
>>>https://hackfox.github.io/section4/s4g325.html
>>>https://www.tek-tips.com/viewthread.cfm?qid=841859
>>>https://www.google.com/search?q=refresh+vfp+dodefault
>>
>>First, thank you. In my case, no code in the parent class.
>>
>>So, do I understand that all controls and containers are automatically call Refresh() on ever record move? (even without the DODEFAULT())?
>
>I think, only if they have a ControlSource bound to the cursor. Those must, because they change. But this is a guess only. Test would need code in any objects refresh and eventlogging.

In my case all controls are bound to the cursor. So, this must be what causes the Refresh to fire. I will double check.
I had so many Refresh() in my form (quite loaded form with a pageframe and multiple containers) and I saw that one of the container's Refresh was firing many times. I am trying to get it down to have it fired one time only. You input helps.
Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform