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. VB6 Currency conversion to .NET

VB6 Currency conversion to .NET

Scheduled Pinned Locked Moved Visual Basic
csharpquestion
3 Posts 2 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.
  • D Offline
    D Offline
    dazinith
    wrote on last edited by
    #1

    i am attempting to read in a byte stream which contains what used to be VB6 currency values, .NET does not have a currency type anymore, so im trying to figure out the easiest way to convert to the new decimal format.. anyone got any pointers they could throw my way? thanks in advance for any suggestions still a newb.. cut me some slack :P -dz

    J 1 Reply Last reply
    0
    • D dazinith

      i am attempting to read in a byte stream which contains what used to be VB6 currency values, .NET does not have a currency type anymore, so im trying to figure out the easiest way to convert to the new decimal format.. anyone got any pointers they could throw my way? thanks in advance for any suggestions still a newb.. cut me some slack :P -dz

      J Offline
      J Offline
      J Dunlap
      wrote on last edited by
      #2

      The VB6 Currency is a 64-bit data type. Read it into a 64-bit integer (int64) and multiply it by 10,000. Let us know how this works for you.

      "Do unto others as you would have them do unto you." - Jesus
      "An eye for an eye only makes the whole world blind." - Mahatma Gandhi

      D 1 Reply Last reply
      0
      • J J Dunlap

        The VB6 Currency is a 64-bit data type. Read it into a 64-bit integer (int64) and multiply it by 10,000. Let us know how this works for you.

        "Do unto others as you would have them do unto you." - Jesus
        "An eye for an eye only makes the whole world blind." - Mahatma Gandhi

        D Offline
        D Offline
        dazinith
        wrote on last edited by
        #3

        thanks for the suggestion.. i wont be able to tell if this works until i can get it read in from a random access file.. please check out my post on that if you might be able to help.. heres the link: Reading a Random Access file.. how to parse bytes? http://www.codeproject.com/script/comments/forums.asp?forumid=1649#xx501601xx[^] still a newb.. cut me some slack :P -dz

        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