|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
using a charI 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. cint(..)
Thanks, Seth Rowe Fred wrote: Show quoteHide quote > 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 Show quoteHide quote "Fred" <eomerm***@yahoo.com> schreef in bericht news:1162997818.300527.198790@m7g2000cwm.googlegroups.com... >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. > val() worked without any problem. Cint() did not care for a char being
passed to it. Thank you for your responses! Cor Ligthert [MVP] wrote: Show quoteHide quote > Hi Fred, > > The first one is > > Dim fred As Integer = Val("101011"(0)) > > I hope this helps, > > Cor > > "Fred" <eomerm***@yahoo.com> schreef in bericht > news:1162997818.300527.198790@m7g2000cwm.googlegroups.com... > > >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. > >
What do you call nested If...Then search loops?
SortedList - bug or undocumented behavior ? DirctX 9.0 SDK And Visual Basic Idle time VB.NET Delegates Newbie: general requirements to write a program for video coding? Need help in developing an editor in VB.net Put If e.Cancel Then Exit Sub in Closing event Best practice, copy object, using a shadow Object for a undo functionality RadioButtonList |
|||||||||||||||||||||||