Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing back an array
Message
From
05/10/1999 17:22:26
 
 
To
05/10/1999 13:49:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00272758
Message ID:
00272942
Views:
22
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.


>*-- aDataset[1,1] need to be a property of the form/class
>oServer = CREATEOBJECT('VFPServer.GetData', This)
>
>In the VFPServer DLL's Init:
>
>LPARAMETERS toParent
>SELECT * FROM inventory WHERE styleno='177' INTO ARRAY toParent.aDataset
>

>loReturn = NewObject("MyClass", "MyLib")
>loReturn.AddProperty("aDataSet[1, 1]")
>SELECT * FROM inventory WHERE styleno='177' INTO ARRAY loReturn.aDataset
>RETURN loReturn
It's "my" world. You're just living in it.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform