Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing back an array
Message
From
06/10/1999 08:06:14
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00272758
Message ID:
00273088
Views:
23
I don't know for sure what the problem is. As you tried creating your object as a VCX to know where the error occur?

Also, I wouldn't pass the object as a parameter in the CreateObject(). AFAIK, you can't pass a parameter to an object when creating it in VB. Create a method that you would call with the parameter.

I couldn't make the array visible in a VFP COM when called from a VB program. VB yell at me when I try to declare a public array in a class or a form. The only place I could define the array public, is in a module. But VFP can't access it from there. Of course, if I cannot declare the array public, VFP can't access it.

I also tried passing the array to the VFP COM as a parameter, but I get an error when trying this.

Passing arrays between tiers is tricky at best and is not something that I would recommend. I know that you have found ADO slow, but, IMHO, it's the best method to pass arrays or cursors between tiers.
>I create a test form with aDataset[1,1] as a property. However,
>
>oServer = CREATEOBJECT('VFPServer.GetData', This)
>
>This line generates an "unspecified OLE Error" What could be the problem? Also, is this a VFP-to-VFP only solution or can I do this from other (e.g. VB) client apps? Thanks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform