Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom object data session?
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00710978
Message ID:
00711003
Views:
15
Why dont you initiate you object in the load of your form before calling it ?

>That won't work since I'm calling the object's method in the load. Otherwise I'd be using the object before instantiating it. :)
>
>Thanks,
>
>Michelle
>
>Sigh... I see HR was taken away. I guess I'll hand draw the lines...
>
>------------------------------------------------------------------------------------
>
>>Try to instantiate your object in the form's Init...
>
>------------------------------------------------------------------------------------
>
>>>Maybe I'm not being clear...
>>>
>>>The form is using a private data session. In the load of the form, I call this custom object to gather some data. When the object's code runs, it errors because it can't find the cursor I told it to put the data in (which was created in the form). If I suspend, I can see that I'm in the default data session, and not the form's private data session. I need the object to use the same datasession as the form that is calling it, _not_ the default datasession. How do I do that?
>>>
>>>Thanks,
>>>
>>>Michelle
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform