Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Superclass
Message
De
27/03/1999 23:21:07
 
 
À
26/03/1999 14:02:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Divers
Thread ID:
00200723
Message ID:
00202798
Vues:
25
>>One, both frmBase and frmMaint are in the __same__ class library. This class library is in another folder.
>>
>>Two, you are correct that he misunderstood me. I am not subclassing a button. I am subclassing the frmMaint.next method, which is the method of the _form_. This is legal. I tried it from scratch and that worked, but for some mysterious reason, it doesn't work with this particular form, although the form executes properly.
>>
>>Yossi
>
>My feeling is still that you problem is that the Sublcass is not pointing to the parent class properly.
>
>If open the class browser, and highlite the class in question. Turn on descriptions on the browser. In the bottom right corner it will show you what the Parent Class is, and the path to its .VCX file. If that PATH is wrong superclass with not be able to find it.
>
>If it is wrong, you can 'redefine' the class pointing to the parent class in the correct path, this will update the info in the class library which should allow superclass to find it.
>
>BOb

Bob:

This is a form that I am working on, not a class. So it wont show up in the class browser.

However, I SOLVED THE PROBLEM!!

Somehow myform.name had the value 'frmmaint', which is the same name as form it was subclassing. As soon as I changed that to 'frmmaint1' it worked. I got the idea from creating a new form based on that class and noticing that foxpro gives it the name frmmaint1.

Thank you for all your reply. It raelly made me check the dependency all ways. It eventually helped me go in the right direction.

Yossi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform