Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Basic question on OOP
Message
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01356615
Message ID:
01356623
Views:
20
>>Hi,
>>
>>I know I should know the answer to this question after using VFP for 10 years but let me ask just to be sure.
>>
>>I have a form class (child class) based on another form class (parent class). In the LOAD method of the child class I have a bunch of code and then I always have DODEFAULT(). The parent class has Nothing in the LOAD method. I believe that I really don't need this DODEFAULT() in the child class LOAD method and therefore can remove/comment this line. Am I correct?
>
>You're correct, but it is a good idea to always use DODEFAULT() just in case.
>
>I think you should do something like
>
>if dodefault()
>   your code
>else
>  return .f.
>endif
I am trying to reduce number of lines in my code and you are suggesting more {g}. 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