Click here to Skip to main content
15,895,011 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Rip CD Pin
ianbacalla14-Aug-07 21:22
ianbacalla14-Aug-07 21:22 
GeneralRe: Rip CD Pin
meofcourse15-Aug-07 4:46
meofcourse15-Aug-07 4:46 
Questionstring array to Byte array....conversion problem Pin
Cory Kimble9-Aug-07 4:51
Cory Kimble9-Aug-07 4:51 
AnswerRe: string array to Byte array....conversion problem Pin
Luc Pattyn9-Aug-07 5:05
sitebuilderLuc Pattyn9-Aug-07 5:05 
GeneralRe: string array to Byte array....conversion problem Pin
Cory Kimble9-Aug-07 5:42
Cory Kimble9-Aug-07 5:42 
GeneralRe: string array to Byte array....conversion problem Pin
Luc Pattyn9-Aug-07 5:55
sitebuilderLuc Pattyn9-Aug-07 5:55 
GeneralRe: string array to Byte array....conversion problem Pin
Cory Kimble9-Aug-07 8:10
Cory Kimble9-Aug-07 8:10 
GeneralRe: string array to Byte array....conversion problem Pin
Luc Pattyn9-Aug-07 8:35
sitebuilderLuc Pattyn9-Aug-07 8:35 
OK, I think that would be
"how to convert a string to a byte array containing the ASCII values of the
string's characters"

unless the string also might contain non-ASCII characters, in which case additional
specifications would be required.

So there is no string array, and actually there is nothing hexadecimal at all.
A byte is a byte, hexadecimal is just a way of looking at the content of the byte.
That is: the character '1' in ASCII is coded as a byte with decimal value 49,
hexadecimal value 31, binary value 00110001, octal value 061, that's all the same byte.

The job is handled by the following line of C# code:

byte[] AsciiByteArray=Encoding.ASCII.GetBytes(myInputString);

Since all Framework classes are available to VB.NET too, I trust you will know
how to do the same in one line of VB.NET

BTW: if the input is not ASCII but some other encoding, chances are that encoding
is also available in .NET and just requires a minor modification of the code.

Hope this helps.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


QuestionHow to enumerate all possible Screen Resolutions? Pin
svengurke@gmx.de9-Aug-07 2:36
svengurke@gmx.de9-Aug-07 2:36 
AnswerRe: How to enumerate all possible Screen Resolutions? Pin
Craster9-Aug-07 3:32
Craster9-Aug-07 3:32 
GeneralRe: How to enumerate all possible Screen Resolutions? Pin
svengurke@gmx.de10-Aug-07 1:14
svengurke@gmx.de10-Aug-07 1:14 
AnswerRe: How to enumerate all possible Screen Resolutions? Pin
Luc Pattyn9-Aug-07 3:40
sitebuilderLuc Pattyn9-Aug-07 3:40 
Questionreports Pin
Sonia Gupta9-Aug-07 2:05
Sonia Gupta9-Aug-07 2:05 
AnswerRe: reports Pin
Dave Kreskowiak9-Aug-07 3:35
mveDave Kreskowiak9-Aug-07 3:35 
AnswerRe: Prabumj's reply on reports [modified] Pin
i gr89-Aug-07 8:07
i gr89-Aug-07 8:07 
Questioncamera function Pin
ahzarmokhli9-Aug-07 0:51
ahzarmokhli9-Aug-07 0:51 
AnswerRe: camera function Pin
originSH9-Aug-07 1:21
originSH9-Aug-07 1:21 
AnswerRe: camera function Pin
Christian Graus9-Aug-07 1:26
protectorChristian Graus9-Aug-07 1:26 
Questionhow to show dates in crystal report Pin
magedhv8-Aug-07 23:50
magedhv8-Aug-07 23:50 
AnswerRe: how to show dates in crystal report Pin
Salman Sheikh9-Aug-07 2:36
Salman Sheikh9-Aug-07 2:36 
AnswerSenthil's Reply for how to show dates in crystal report Pin
Senthil S9-Aug-07 2:50
Senthil S9-Aug-07 2:50 
Questionnumeric textbox Pin
SamRST8-Aug-07 23:29
SamRST8-Aug-07 23:29 
AnswerRe: numeric textbox Pin
Tom Deketelaere8-Aug-07 23:35
professionalTom Deketelaere8-Aug-07 23:35 
GeneralSenthil'S reply for numeric textbox Pin
Senthil S8-Aug-07 23:59
Senthil S8-Aug-07 23:59 
GeneralRe: Senthil'S reply for numeric textbox Pin
Christian Graus9-Aug-07 0:22
protectorChristian Graus9-Aug-07 0:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.