Ok, I've checked the sources of the component and figured out my problem I have to create an RpcArray with my Date[] first before putting it into the Variant[]...
Hplus Le 06/02/2012 13:38, Fabien Bodard a écrit : > 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 > > ------------------------------------------------------------------------------ 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