Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass parameters between VFP and COM
Message
De
18/12/2001 06:53:49
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00595402
Message ID:
00595522
Vues:
17
This message has been marked as the solution to the initial question of the thread.
Hi Rodolfo for me in this case is better to use XML XML is exactly fot this cases that have everything to do with data take the following:
<?xml version="1.0" encoding="Windows-1252"?>
<root>
	<data>
		<field1>value< /field1>
		<field2>value< /field2>
		<field3>value< /field3>
		<fieldn>value< /fieldn>
	</data>
</root>
no you can pass this to your savedata and inside you can do an XMLTOCURSOR.

>I'm passing parameters this way:
>
>x = CreateObject("AnyThing.COM_A")
>x.Propertie1 = "Blá"
>x.Propertie2 = "Blá"
>x.Propertie3 = "Blá"
>x.SaveData
>
>But I've read about it and maybe I'm wrong... I should do this:
>
>x = CreateObject("AnyThing.COM_A")
>x.SaveData("Blá", "Blá", "Blá")
>
>But... I have a lot of parameters to pass... What should I do?
>
>a) Use Array?
>b) XML?
>c) other solution?
>
>If I must use XML, how can I create a XML if I don't have a cursor to use CursorTOXml()? Are there some funcions to create it?
>
>Thanks! :)
Alexandre Palma
Senior Application Architect
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform