|
-
Jul 29th, 2000, 09:57 AM
#1
Thread Starter
New Member
Being relatively new to VB (previous experience in PowerBasic and C/C++) I was wondering why certain data types are not supported, such as Word, DWord, Quad Integer, Extended Precision, etc.
Are there any current work-arounds which will allow for the same (or similar) functionality?
Lastly, are future releases of VB slated to incorporate these additional data types?
Any and all help/comments would be greatly appreciated.
Please email me at: ----> [email protected]
Thanks in advance for your help.
Andrew
-
Jul 29th, 2000, 10:09 AM
#2
Fanatic Member
You have Variant, which really is *****.
You have Integer, which is 2 bytes; a word.
You have Long, which is 4 bytes; a Dword.
You have Single, which is 4 bytes.
You have Double, which is 8 bytes.
You have Byte, which is 1 byte.
You have Currency, which is 8 bytes.
There are others; the point is you have all you need.
-
Jul 29th, 2000, 10:25 AM
#3
Thread Starter
New Member
That is not correct HaxSoft ...
For example:
a Long Integer spans -2,147,483,648 to 2,147,483,648
while a DWord spans 0 to 4,294,967,295
One is signed and the other is not. To my knowledge, VB does not support unsigned variable types. Which brings me back to my original post ...
Andrew
-
Jul 29th, 2000, 11:19 AM
#4
You can store an unsigned DWORD in a byte array.
-
Jul 29th, 2000, 11:28 AM
#5
Thread Starter
New Member
Originally posted by Joacim Andersson
You can store an unsigned DWORD in a byte array.
Can you post an example on how to do this.
Thanks.
Andrew
-
Jul 29th, 2000, 09:02 PM
#6
Code:
Dim bDWORD(3) As Byte
If you really need a higher positive integer value than what a VB Long can give you, please send me the code requriment that you have and I will try to give you a solution.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|