Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing back an array
Message
 
 
À
05/10/1999 13:49:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00272758
Message ID:
00272942
Vues:
23
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform