I'm converting c++ code to VB and I'm a newbie so....
how would I put this in VB terms?
byte b = (byte)inStr.charAt(i);
instr is a string, i'm guessing charat does a mid$(string,i,1)
Help!
Thanks,
Printable View
I'm converting c++ code to VB and I'm a newbie so....
how would I put this in VB terms?
byte b = (byte)inStr.charAt(i);
instr is a string, i'm guessing charat does a mid$(string,i,1)
Help!
Thanks,
That looks like Java to me but:
VB Code:
Dim b As String * 1 b = Mid$(inStr, i, 1)
I need b as a byte.
So would I Asc it?
Also ^ does power in c++ right?
There is no power operator in C++, you've got to make your own or use stuff from math.h.
A byte is a value from 0 to 255 when unsigned so my string declaration should be right.
Filburt, check your private messages I sent you something, please help me.
Thanks
^ is the xor operator.