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