Format Function in vb6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • StillLearning
    New Member
    • Jul 2007
    • 2

    #1

    Format Function in vb6

    hiii ;
    I have a field Price in my form and i want to print its value in following form:

    "#####.00"

    I tried this with format function in vb6 but i am getting various output patterns.

    plz anyone help me for this problem.
    Is there is any other way to solve this problem...
    plz reply .....
  • hariharanmca
    Top Contributor
    • Dec 2006
    • 1977

    #2
    Originally posted by StillLearning
    hiii ;
    I have a field Price in my form and i want to print its value in following form:

    "#####.00"

    I tried this with format function in vb6 but i am getting various output patterns.

    plz anyone help me for this problem.
    Is there is any other way to solve this problem...
    plz reply .....

    what is the output you expect?

    because, you can format decimals places (float), but not the actual values....

    Comment

    • StillLearning
      New Member
      • Jul 2007
      • 2

      #3
      Originally posted by hariharanmca
      what is the output you expect?

      because, you can format decimals places (float), but not the actual values....
      thnks
      the pattern will be <value>.00

      {Ex. 110.00 , 115.50 and if give the value given is 100 then it will return 100.00}

      Comment

      • hariharanmca
        Top Contributor
        • Dec 2006
        • 1977

        #4
        Originally posted by StillLearning
        thnks
        the pattern will be <value>.00

        {Ex. 110.00 , 115.50 and if give the value given is 100 then it will return 100.00}

        yha, that i mean before

        Comment

        Working...