2012/2/6 Francois Saidi <franc...@saidi-oliver.com>:
> 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@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard

first don't give array as a name for a variable ... it's a class !

------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to