long datatype

vb6 Grenada
  • 14 years ago
    hi,
     I a getting overflow problem in case of long data type.I want a 4 byte unsigned varable.If i use long and assign a big number with 32nd bit on i am getting nagative value.Is there any unsigned data types in VB
    thank u

  • 14 years ago

    Dear harish

    NO, Visual Basic do not support unsigned data types. Visual Basic only supports 2-byte and 4-byte signed integers

    Regards
    DoctorMahdi

  • 14 years ago

    There are a few things you can do if you need to pass an unsigned value of 4 byte type, but its not as nice as having unsigned values like in C.  Read up about it here.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“In order to understand recursion, one must first understand recursion.”