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,