UInt64 to integer/string

rmullen

New member
Joined
Sep 21, 2006
Messages
2
Location
colorado
Programming Experience
Beginner
Hi all - i'm really new to this vb.net programming. I have done vbscript before though so the logic is there (ummmm kinda ;) )

anyway, i'm using the WMI library to pull out computer stats (harddrive space, free space, etc). Well those datatypes I found out are not compatable if i want to do operations on them (like divide, multiply, etc).

Is there any function/library that vb.net gives us to change the UInt64 data type into an integer, double, string, etc?

Thanks so much for any help that you can provide.

--rebekah
 
You'd have to use the Convert class, e.g. Convert.ToInt32(myUInt64), but make sure that the value is not too large to convert or an exception will be thrown. The good news is that VB 2005 includes support for unsigned numeric types.
 
Back
Top