Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with child class
Message
De
13/12/2006 09:25:56
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Problems with child class
Divers
Thread ID:
01177142
Message ID:
01177142
Vues:
63
Situation:
Parent Class Recal Method(param1) - has code
Child Class Recal Method(param1) - has code which overrides parent class
Grandchild Class Recal Method(param1) - has no code so calls child class recal
For five years the Grandchild class Recal Method automatically called the Child Class Recal method. Yesterday, it stopped working. Tracing thru the app when the grandchild class recal method was hit, it just went to the next line. I thought that I must have somehow inadvertantly lost some code in the grandchild class, so I looked back at older copies and discovered the older working versions of the code are EXACTLY the same as the current version which no longer works. I was able to restore the code to working order by putting the line DoDefault(param1) in the grandchild class. Can anyone explain this to me? There was absolutely nothing ( no spaces, no text) in the grandchild class other than a parameter. The parameter has always been there.

To tell you the truth, I did not sleep well last night. I am beginning to lose the faith. This appears to be completely random, and I really need to come up with an explanation. Thanks!
A problem is a problem only as long as it has a possible solution. Lacking that, it becomes a FACT!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform