Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Classes not to subclass
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00792211
Message ID:
00793336
Vues:
53
Yes, we do have SET CLASSLIB in the main program. I overlooked mentioning that it was open in my post.

>DEFINE CLASS col AS Column
> Name = "col"
> HeaderClass = "hdr"
> HeaderClassLibrary = "t:\baseclasses\grid.prg"

> ----> ADD OBJECT txt AS txt OF t:\baseclasses\baseclasses.vcx
>ENDDEFINE

I just checked the syntax for the ADD OBJECT clause of the DEFINE CLASS command and I don't see where it supports the OF clause.

[ADD OBJECT [PROTECTED] ObjectName AS ClassName2 [NOINIT]
[WITH cPropertylist]]
[[PROTECTED | HIDDEN]

This looks to be the source of the error.

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

Click here to load this message in the networking platform