Label Currency Format

Rate It (1)

Last post 07-03-2006 10:23 AM by jlgonzalez. 3 replies.

Sort Posts:

  • Label Currency Format

    06-30-2006, 7:41 PM
    • Member
      70 point Member
    • jlgonzalez
    • Member since 12-16-2005, 11:45 AM
    • Guadalajara, México
    • Posts 15

    Hi...

    I get some imports from a data Table and need to present them in lable controls like currency.. I'm trying using Format function but nothing happend.. this is muy code:

    labelContrato.Text = Format(dtCtto.Rows(0).Item("Imp_Ctto").ToString, "$##,##0.00")

    it presents .... 123654.5

    but I need .... $123,654.50

    Can you help me?

    JLGonzalez
    jlgonzalez@dalton.com.mx;renfro2k@hotmail.com
  • Re: Label Currency Format

    07-02-2006, 9:14 PM
    • Participant
      1,131 point Participant
    • csi95
    • Member since 07-29-2003, 8:49 PM
    • Albany, NY
    • Posts 241
    It may not be "cool", but you could always use FormatCurrency()
  • Re: Label Currency Format

    07-02-2006, 9:47 PM
    • Participant
      1,191 point Participant
    • jasonli
    • Member since 08-03-2005, 7:23 PM
    • Posts 268
    I may use like this:

    labelContrato.Text = dtCtto.Rows(0).Item("Imp_Ctto").ToString("$##,###.##")


  • Re: Label Currency Format

    07-03-2006, 10:23 AM
    • Member
      70 point Member
    • jlgonzalez
    • Member since 12-16-2005, 11:45 AM
    • Guadalajara, México
    • Posts 15

    Thanks csi95

    It works perfectly

    JLGonzalez
    jlgonzalez@dalton.com.mx;renfro2k@hotmail.com
Page 1 of 1 (4 items)