Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proper way of coding a class
Message
 
To
11/12/2001 11:25:03
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00592667
Message ID:
00592839
Views:
18
>>Hehe. When I was typing the reply I was thinking, "hmmm, I've never used the :: before, I wonder why"? Guess my brain got stuck. Thanks.
>>
>
>Yours was an improvement on what I was going to post.

Thanks.

>I guess it depends on if more is to be done in Test2::showString() as to which way to go, though.

Yeah, I guessed it was just to fix the base functionality.

>
>
>Define Test1 as Test
>  function showString(aString)
>    dodefault(aString)
>  endfunc
>  function fixFunc(aString)
>    Test1::showString( 'String: ' + aString )
>  endfunc
>Enddefine
>
>Define Test2 as Test1
>  function showString(aString)
>    this.fixFunc(aString)
>  endfunc
>Enddefine
>
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Previous
Reply
Map
View

Click here to load this message in the networking platform