Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple Inheritance??
Message
De
27/01/2016 16:20:55
 
 
À
27/01/2016 16:17:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows Server 2012 R2
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01630304
Message ID:
01630312
Vues:
69
>The button can't inherit form code. I think it's telling you that the button is a member of the form container.
>
>VFP doesn't support multiple inheritance (thank goodness)
>
>
>>I'm looking at and trying to understand someone else's code.
>>
>>The situation:
>>
>>- An SCX form based on a form class frmAllBase
>>- On that SCX form there's a Command Button (cmdXLS), based on a hierarchy of command button classes
>>
>>Most of cmdXLS's methods inherit from one of its parent command button classes (as expected). But some of them appear to inherit from frmAllBase (see attached image).
>>
>>frmAllBase is a Form class (with its own inheritance hierarchy) and is no way based on any of cmdXLS's parent command button classes.
>>
>>Can anyone explain what's going on? Is this multiple inheritance of some kind, and if so how was it set up?

Yes, that's correct - see my reply to Charlie. I was a bit thrown by how the Properties window reports inheritance for methods.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform