Menu

Convert XmlValue to int.

Help
Anonymous
2004-03-04
2004-03-09
  • Anonymous

    Anonymous - 2004-03-04

    Can somone give me an example of converting result returned
    from xml call to an interger value.

     
    • Chris Morley

      Chris Morley - 2004-03-09

      Assuming the result contains an int:
      XmlRpcValue result;
      client.execute("NoSuchMethod", args, result)
      int i =  result;

      Error checking neglected.

       
    • Anonymous

      Anonymous - 2004-03-09

      Thank you,

        The developer on server side was returning a string and
      no matter what I done on the client side the client aborted.

      Problem solved.

       

Log in to post a comment.