|
-
Nov 4th, 2001, 08:16 PM
#1
Thread Starter
So Unbanned
Simple question(extremely)
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,
-
Nov 4th, 2001, 08:19 PM
#2
Member
That looks like Java to me but:
VB Code:
Dim b As String * 1
b = Mid$(inStr, i, 1)
-
Nov 4th, 2001, 08:25 PM
#3
Thread Starter
So Unbanned
I need b as a byte.
So would I Asc it?
Also ^ does power in c++ right?
-
Nov 4th, 2001, 08:28 PM
#4
Member
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.
-
Nov 4th, 2001, 08:47 PM
#5
Thread Starter
So Unbanned
Filburt, check your private messages I sent you something, please help me.
Thanks
-
Nov 5th, 2001, 10:28 AM
#6
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|