Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Classes not to subclass
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00792211
Message ID:
00793336
Views:
51
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform