OmarB Posted September 23, 2005 Posted September 23, 2005 Hi guys, i was wondering if there is a binary type in vb.net i need to declare a number as binary, and then add 1 to it exemple: 0 1 10 11 100 101 110 111 1000 1001 1010 1011 1100 1101 1110 1111 .............. does such thing exist in dot-net ? or ill need to implement it myself thanks for any help, kind regards, Bili Quote
Administrators PlausiblyDamp Posted September 23, 2005 Administrators Posted September 23, 2005 Just use a normal integer variable to do the counting and convert it to a string representation of a binary value with code like Dim i as integer = 12345 Dim s as string s = Convert.ToString(i, 2) Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.