Board index » Visual Studio » ASCII to binary conversion

ASCII to binary conversion

Visual Studio261
Hi there, I need to do an ASCII to 10 bit binary

conversion and have no idea how to do so, unfortunately

its for my job so any help/guidance would be greally

appreciated.



My set up is this: I have a vertical list of decimal

numbers (some are negative and others are in E-n format)

which i have imported into Excel, and using VB have

arranged it into a table. I can use the Excel command of

=DEC2BIN(C3,10) to convert to 10 bit binary but I cant do

it in VB (which it needs to be in). As an advancement on

this I then need to convert the binary to 16 Bit Binary

and from there onto 10bit, 12bit and 14bit ASCII.



As i say I have no idea how to do this and so any help

would be great.



Thanks

Phillip


-
 

Re:ASCII to binary conversion

There are many samples available...



Subject: Re: String to Binary encryption

http://groups.google.com/groups?hl" rel="nofollow" target="_blank">groups.google.com/groups=en&lr=lang_en&ie=UTF-8&oe=UTF-8&selm=uqW6IUOzCHA.1876%40TK2MSFTNGP11



--

Ken Halter - MS-MVP-VB - www.vbsight.com">www.vbsight.com

Please keep it in the groups..





"Phillip Harrison" <Phillip.Harrison@baesystems.com>wrote in message

Quote
Hi there, I need to do an ASCII to 10 bit binary

conversion and have no idea how to do so, unfortunately

its for my job so any help/guidance would be greally

appreciated.



My set up is this: I have a vertical list of decimal

numbers (some are negative and others are in E-n format)

which i have imported into Excel, and using VB have

arranged it into a table. I can use the Excel command of

=DEC2BIN(C3,10) to convert to 10 bit binary but I cant do

it in VB (which it needs to be in). As an advancement on

this I then need to convert the binary to 16 Bit Binary

and from there onto 10bit, 12bit and 14bit ASCII.



As i say I have no idea how to do this and so any help

would be great.



Thanks

Phillip





-