Formating price form XML response

Last post 07-04-2009 6:42 PM by Segundo. 1 replies.

Sort Posts:

  • Formating price form XML response

    07-04-2009, 4:53 PM
    • Member
      49 point Member
    • mattatuni2
    • Member since 01-15-2009, 10:23 PM
    • Posts 619

     Hi I am bringing in the price of books using amazons web services, the following line displays the price in a datagrid (vb.net):

    dr("LNP") = item.offersummary.lowestnewprice

    However something that is $30.99 apears as 3099 ... how can I format this.. any help would be appriciated

    Cheers

  • Re: Formating price form XML response

    07-04-2009, 6:42 PM
    Answer
    • Contributor
      4,934 point Contributor
    • Segundo
    • Member since 09-07-2006, 10:44 AM
    • Lima, Perú
    • Posts 693

     Hi,

    You can format the price this way:

    dr("LNP") = item.offersummary.lowestnewprice.ToString("C")

    Any doubt, post your comment.

     

Page 1 of 1 (2 items)