VB Code:
'string to binary 'second argument converts the string from a base 10 number 'other valid arguments are 2, 8 & 16 'Method converts to a 32 bit Signed integer. Dim i as Int i = System.Convert.ToInt32 ("12345", 10) 'binary to string Dim s as String s = i.ToString()
Other valid conversions
ToInt16 - converts to a 16 bit signed integer
ToInt64 - converts to a 64 bit signed integer
ToUInt16 - converts to a 16 bit unsigned integer
ToUInt32 - converts to a 32 bit unsigned integer
ToUInt64 - converts to a 64 bit unsigned integer




Reply With Quote