using a char

  • Thread starter Thread starter Fred
  • Start date Start date
F

Fred

I have a String of bits -- "101011". I want to extract each bit in the
string as a char and then use each extracted char in multiplication.

The extraction part is easy (I think).

How can I convert each char to an int so that I can use it for
multiplication?

Thanks.
 
Hi Fred,

The first one is

Dim fred As Integer = Val("101011"(0))

I hope this helps,

Cor
 
val() worked without any problem. Cint() did not care for a char being
passed to it.
Thank you for your responses!
 
Back
Top