A alv Member Jan 20, 2012 #1 Hi, i have a question, the guide tells as that byte is a varible that ranges from -128 to 127, but i want to be from 0 to 255. In C language there is the word unsigned but in basic doesnt work. How do i tell that byte range is from 0 to 255 ? Thanks
Hi, i have a question, the guide tells as that byte is a varible that ranges from -128 to 127, but i want to be from 0 to 255. In C language there is the word unsigned but in basic doesnt work. How do i tell that byte range is from 0 to 255 ? Thanks
agraham Expert Licensed User Longtime User Jan 20, 2012 #2 Try Code: Copy Dim i As Int Dim b As Byte Dim msg As String b = 0xff ' -1 i = Bit.And(b, 0xff) msg = "byte value: " & b & CRLF & "int value : " & i Msgbox(msg, "Values") Upvote 0
Try Code: Copy Dim i As Int Dim b As Byte Dim msg As String b = 0xff ' -1 i = Bit.And(b, 0xff) msg = "byte value: " & b & CRLF & "int value : " & i Msgbox(msg, "Values")