Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper way of coding a class
Message
 
À
11/12/2001 11:25:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00592667
Message ID:
00592839
Vues:
19
>>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!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform