Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. VB FORMAT FUNCTION

VB FORMAT FUNCTION

Scheduled Pinned Locked Moved Visual Basic
helpcom
9 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pankaj Joshi
    wrote on last edited by
    #1

    hi frds... i do lot's of effort to do this but i was unable to do... my problem is that i have a number filed say amount in that the value store is 123456789.123 i want to show this value in indian currency format like 12,34,56,789.123 i also change the regional setting from control panel i do lot's of try but i was unable to this can u help me its urgent... also mail me on pankaj.indore@gmail.com:~ Regards Pankaj Joshi

    M 1 Reply Last reply
    0
    • P Pankaj Joshi

      hi frds... i do lot's of effort to do this but i was unable to do... my problem is that i have a number filed say amount in that the value store is 123456789.123 i want to show this value in indian currency format like 12,34,56,789.123 i also change the regional setting from control panel i do lot's of try but i was unable to this can u help me its urgent... also mail me on pankaj.indore@gmail.com:~ Regards Pankaj Joshi

      M Offline
      M Offline
      mr_12345
      wrote on last edited by
      #2

      Dim amount As Double = 123456789.123 MsgBox(amount.ToString("##,##,##,###.###")) Mike Lasseter

      P 1 Reply Last reply
      0
      • M mr_12345

        Dim amount As Double = 123456789.123 MsgBox(amount.ToString("##,##,##,###.###")) Mike Lasseter

        P Offline
        P Offline
        Pankaj Joshi
        wrote on last edited by
        #3

        hello sir... thx for u r reply sir u gave code it is in Vb.net i want to do it in VB 6 plz help me... hi i am pankaj

        S 1 Reply Last reply
        0
        • P Pankaj Joshi

          hello sir... thx for u r reply sir u gave code it is in Vb.net i want to do it in VB 6 plz help me... hi i am pankaj

          S Offline
          S Offline
          Steve Pullan
          wrote on last edited by
          #4

          pankaj.indore wrote:

          hello sir... thx for u r reply sir u gave code it is in Vb.net i want to do it in VB 6 plz help me...

          Mike gave you the code - regardless of its origin you should be able to work this out yourself. BTW soliciting a direct email response by placing your email address in the forum is a BAD idea. Also, it may be urgent to you but don't put the pressure on the other forum members. We all have our own 'urgent' problems :-) ...Steve 1. quod erat demonstrandum 2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once :-)

          P 1 Reply Last reply
          0
          • S Steve Pullan

            pankaj.indore wrote:

            hello sir... thx for u r reply sir u gave code it is in Vb.net i want to do it in VB 6 plz help me...

            Mike gave you the code - regardless of its origin you should be able to work this out yourself. BTW soliciting a direct email response by placing your email address in the forum is a BAD idea. Also, it may be urgent to you but don't put the pressure on the other forum members. We all have our own 'urgent' problems :-) ...Steve 1. quod erat demonstrandum 2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once :-)

            P Offline
            P Offline
            Pankaj Joshi
            wrote on last edited by
            #5

            ok sir... i sorry for that hi i am pankaj

            M 1 Reply Last reply
            0
            • P Pankaj Joshi

              ok sir... i sorry for that hi i am pankaj

              M Offline
              M Offline
              mr_12345
              wrote on last edited by
              #6

              It is very similar Dim test As Double test = 111000111.235 MsgBox (Format(test, "###,###,###.##0"))

              P 1 Reply Last reply
              0
              • M mr_12345

                It is very similar Dim test As Double test = 111000111.235 MsgBox (Format(test, "###,###,###.##0"))

                P Offline
                P Offline
                Pankaj Joshi
                wrote on last edited by
                #7

                thx for u r reply sir.. but my problem is still not solved... i want to do this in indian currency format like 123456789.123 becomes 12,34,56,789.123 in india can anybody help me..? hi i am pankaj

                M S 2 Replies Last reply
                0
                • P Pankaj Joshi

                  thx for u r reply sir.. but my problem is still not solved... i want to do this in indian currency format like 123456789.123 becomes 12,34,56,789.123 in india can anybody help me..? hi i am pankaj

                  M Offline
                  M Offline
                  mr_12345
                  wrote on last edited by
                  #8

                  move the commas around until you get them how you need them. You should see the pattern by now. ##,##,##,###.### Mike Lasseter

                  1 Reply Last reply
                  0
                  • P Pankaj Joshi

                    thx for u r reply sir.. but my problem is still not solved... i want to do this in indian currency format like 123456789.123 becomes 12,34,56,789.123 in india can anybody help me..? hi i am pankaj

                    S Offline
                    S Offline
                    Steve Pullan
                    wrote on last edited by
                    #9

                    Ever heard of the expression "RTFM" ? Here's a reference for you. Enjoy :) Definition of RTFM for those who cannot be bothered to do even some elementry research themselves [^] ...Steve 1. quod erat demonstrandum 2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once :-)

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups