[Gambas-user] gb.xml.rpc sending an array from client to server

Francois Saidi francois at ...2770...
Mon Feb 6 13:59:26 CET 2012


ok,
this was not actually the real code, i've just typed this as an example.

Hplus


Le 06/02/2012 13:38, Fabien Bodard a écrit :
> 2012/2/6 Francois Saidi<francois at ...2770...>:
>> Hi,
>>
>> I am new to this mailling list, and a beginner in Gambas programming.
>> I am facing a problem i couldn't solve by  myself and i would appreciate
>> some help of you guys.
>> I am using the xml.rpc component, and i would like to send an array (of
>> Date)  to the server.
>> I have the following code
>> ################################
>> DIM vVar AS NEW Variant[]
>> DIM bOk AS Boolean
>> DIM array AS NEW Date[]
>>
>> array .Add(Now())
>>
>> fRpc = NEW RpcFunction("calendar.setplanning", [XmlRpc.xArray],
>> XmlRpc.xBoolean)
>>
>> vVar.Add(array)
>> TRY bOk = cRpc.Call(vVar)
>>
>> #####################################
>>
>> By doing this i have an error  when doing the Call. The error says "type
>> mismatch wanted float got a string...."
>>
>> Is this the right way to send a array? Is it possible?
>>
>> Thanks for your help
>>
>> Hplus
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Try before you buy = See our experts in action!
>> The most comprehensive online learning library for Microsoft developers
>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>> Metro Style Apps, more. Free future releases when you subscribe now!
>> http://p.sf.net/sfu/learndevnow-dev2
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>





More information about the User mailing list