Results 1 to 5 of 5

Thread: correct the expression of the textbox field

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2010
    Posts
    29

    correct the expression of the textbox field

    hi... to all..

    i've written the code in expression field...

    =format(sum(fields!salary.value),"##\,##\,##\,##\,##\,##\,##0.00")

    the code is for printing the number in this format(12,23,23,34,123.00)

    now i got an problem i.e if i give 5 digit the it will print ,,,,,12,123.00 the remaining commas

    are printed.. i dont want to print the extra commas.. how the word length is there that much it

    should take..i.e( for 5 digit 12,123.00 and for 9 digit 12,23,23,123.00)...

    i've tried by removing some of the #'s but it is for fixed number..

    please help me...

  2. #2
    Fanatic Member
    Join Date
    Jul 2006
    Location
    nasik,india
    Posts
    909

    Re: correct the expression of the textbox field

    You can use
    format(sum(fields!salary.value),"0,0.00")
    WHETHER YOU SUCCEED OR FAIL IS NOT AS IMPORTANT AS WHETHER YOU TRIED YOUR BEST

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Sep 2010
    Posts
    29

    Re: correct the expression of the textbox field

    hi...
    the values are displaying in 123,123,123.00 format..
    but i want in 12,12,12,123.00 this format...

  4. #4
    Fanatic Member
    Join Date
    Jul 2006
    Location
    nasik,india
    Posts
    909

    Re: correct the expression of the textbox field

    It might be wrong but i would recommend

    replace(format(sum(fields!salary.value),"##\,##\,##\,##\,##\,##\,##0.00"),",,","")
    WHETHER YOU SUCCEED OR FAIL IS NOT AS IMPORTANT AS WHETHER YOU TRIED YOUR BEST

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Sep 2010
    Posts
    29

    Re: correct the expression of the textbox field

    sorry sir...
    it is displaying the same as the previous the
    extra commas..

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width