Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do I need DoDefault() in Refresh()?
Message
From
10/03/2021 09:12:36
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01678879
Message ID:
01678880
Views:
41
>Hi,
>
>I have some code in the form method Refresh(). In the end of this code I have dodefault(). I also added some test code into a container's Refresh method (just to see when it fires). So, when I have DODEFAULT() in Refresh method, the Refresh of the Container fires twice on every record move. If I comment the DODEFAULT() in the form Refresh(), the Refresh() in the container fires once.
>Which brings me to the question, what is the purpose, and if I need, DODEFAULT() in the form refresh()?
>
>TIA

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

Aunt Edit:
If ever possible, do not use code in refresh. Or in only one form method. It's a major way to slow down your form
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform