Results 1 to 7 of 7

Thread: money data type

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2004
    Posts
    29

    money data type

    hi,

    please someone tell me how can i display the data type money correctly.

    i have a textbox for keying tha amount of money and it also display the amount in other textbox. It always display with 4 decimal. how to solved this??

    viv

  2. #2
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    what variable type are you using?

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2004
    Posts
    29
    money data type in SQL server but i do not know how to convert it in VB.Net.

    Thanks,
    viv

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jul 2004
    Posts
    29

    Smile Resolved!!

    problem solved, thanks guys.

    viv

  5. #5
    Fanatic Member JPicasso's Avatar
    Join Date
    Aug 2001
    Location
    Kalamazoo, MI
    Posts
    843
    Hey, how about posting what you found to be the solution of your troubles.

    It could help someone else out who may be in a similar jam.
    Merry Christmas

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Jul 2004
    Posts
    29
    Hi,

    here is what i found to solved the problem:

    Dim intTotal As Single

    intTotal = CType(txt5.Text, Single) + CType(txt8.Text, Single)

    Thanks guys
    viv

  7. #7
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    why are u casting the variable from a single to a single?

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