Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom.dataenvironment.crash
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00230749
Message ID:
00230815
Views:
20
>>In the init event of a subclass of the custom object from _base.vcx, I have the following code:
>>
>>this.addobject("de","dataenvironment")
>>this.de.addobject("cursor1","cursor")
>>this.de.cursor1.alias="custs"
>>this.de.cursor1.cursorsource="customers"
>>this.de.cursor1.database="cc"
>>this.de.cursor1.nodataonload=.f.
>>
>>I get the error:
>>"Object class is invalid for this container" upon attempting to instantiate the dataenvironment object.
>>
>>I have tried using the container class instead of the custom class with the same results.
>>
>>I heard this can be done. Does anyone know what I am doing wrong here?
>>TIA
>
>Tis can't be done. A dataenvironment can only be contained in a form. If oyu want to create a custom one, add it to the form.

I have not looked or used, but did they not add a session class with sp3?

Jeff

It's Time to get a gun.

That's what I've been thinkin.

I think I can afford one, If I do a little less Drinkin.

www.TrueGeeks.com
Previous
Reply
Map
View

Click here to load this message in the networking platform