Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM Object
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00408696
Message ID:
00408841
Views:
14
James,

I believe you have to do something like this:

YourBizObj = CREATEOBJECT("YourOLEPublicBizObjClass")
loRS = YourBizObj.GetData(1)
= YourBizObj.RSToCursor(loRS)

Of course, you would have to do this before any objects on your form are initialized so that your data exists first.

You could probably create a class to do this for you and make it so that class is the first thing on your form that is instantiated.

Hopefully Kevin will chime in and give his input too.

>>James, you must use the GetData method of the BizObj. You will need to pass it a parameter corresponding to the format you want the data in.
>>
>>As I type, I noticed your next post regarding the GetData() Method... you are probably already on the right track.
>>
>>>I've created a bizobj and compiled it into a dll according to instructions. It instantiates fine, but I don't see any data. If I instantiate it in the command window, shouldn't the associated cursors be opened?
>
>Doug,
>
>The GetData method returns false when the dataformat is 0 (VFP Cursor). Also, in MM, a bizobj is dropped on a form any you are ready to rock and roll. How do you implement this model with a MM COM object?

Doug Stalter

"According to the proverb, the best things are the most difficult." -Plutarch
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform