Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object Class is invalid for this Container
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Object Class is invalid for this Container
Miscellaneous
Thread ID:
00267160
Message ID:
00267160
Views:
56
Hello All,
I'm trying to add my own DataEnvironment Class to a form at runtime, and receive the message "Object Class is invalid for this Container", the code in the Forms Load event looks like this

With this
.DataEnvironment.CloseTables()
.RemoveObject('DataEnvironment')
Set proc to \pete\prgs\pkdecls.prg additive
.AddObject('DataEnvironment','pkdebase') && This is were it fails
endwith

am I not allowed to do this?

my class definition looks like this

define class PKDEBase as DataEnvironment
AutoOpenTables = .t.
enddefine

Any help appreciated

Pete Kane
Regards,
Peter J. Kane



Pete
Next
Reply
Map
View

Click here to load this message in the networking platform