Hi guys I need help how to convert my uint and int to 3 byte array. Converting it to 4 byte array is easy since .Net has BitConverter class but now I really need to convert it to 3 Byte Array hope someone can help me out. Thanks
Perhaps you could change this struct, so that it fits your 3 byte scheme:
private int _bits;
public IntBits(int InitialBitValue)
_bits = InitialBitValue;
public bool this[int index]
return (_bits & (1 << index)) != 0;
_bits |= (1 << index); //set bit index to 1
_bits &= ~(1 << index); //set bit index to 0
technically endianess will really affect my problem anyway .net provided us the way to check it. I think ill test something using the OR and AND operator and should check if int value is > FFFFFF. Anyway guys thanks for sharing your thoughts, I will try it.
Dim Adapter As New OleDbDataAdapter
Dim Command As New OleDbCommand
Dim xFrom As String = dtpFrom.Value.ToString.Substring(0, dtpFrom.Value.ToString.IndexOf(" "))
Dim xTo As String = dtpTo.Value.ToString.Substring(0, dtpTo.Value.ToString.IndexOf(" "))
sqlQuery = MainQuery ...