Results 1 to 6 of 6

Thread: Missing Variable Types ...?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    VA
    Posts
    3

    Unhappy

    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

  2. #2
    Fanatic Member HaxSoft's Avatar
    Join Date
    May 2000
    Location
    Ohio
    Posts
    593
    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    VA
    Posts
    3
    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

  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    You can store an unsigned DWORD in a byte array.

  5. #5

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    VA
    Posts
    3
    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

  6. #6
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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
  •  



Click Here to Expand Forum to Full Width