Click here to Skip to main content
15,920,956 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Making sure a file really is there Pin
'Drew7-Aug-07 13:05
'Drew7-Aug-07 13:05 
GeneralRe: Making sure a file really is there Pin
Christian Graus7-Aug-07 13:07
protectorChristian Graus7-Aug-07 13:07 
GeneralRe: Making sure a file really is there Pin
dBrong8-Aug-07 6:33
dBrong8-Aug-07 6:33 
Questionconvert anynumber to text [modified] Pin
playout7-Aug-07 7:52
playout7-Aug-07 7:52 
AnswerRe: convert anynumber to text Pin
Hessam Jalali7-Aug-07 8:19
Hessam Jalali7-Aug-07 8:19 
AnswerRe: convert anynumber to text Pin
Guffa7-Aug-07 9:36
Guffa7-Aug-07 9:36 
AnswerRe: convert anynumber to text Pin
The ANZAC7-Aug-07 10:49
The ANZAC7-Aug-07 10:49 
QuestionData Conversion issue Pin
Cory Kimble7-Aug-07 6:00
Cory Kimble7-Aug-07 6:00 
I am trying to write an array of Bytes to a serial port. If I do the following code I can successfully communicate with the serial port.

Dim byteQuit() As Byte = {&H2, &H51, &H3, &H63, &H8D}

serialPort.Write(byteQuit, 0, byteQuit.Length)




But I want to bring in data and place it in the array. When I do this I get an error 'Out of Bounds Exception'


Dim arrayTemp(10) As String
Dim custByte() As Byte = {&H2, &H45, &H41, &H1, Byte.Parse(arrayTemp(0)), &H1, Byte.Parse(arrayTemp(1)), &H1, Byte.Parse(arrayTemp(3)), &H1, &H1, Byte.Parse(arrayTemp(2)), _
            &H1, &H1, &H1, &H1, Byte.Parse(arrayTemp(9)), &H1, &H1, &H1, &H1, &H1, &H1, &H3}


It is obvious that I am doing something wrong with the data conversion. What is not obvious (at least to me, right now) is how to fix it. Granted, if I take the time I could probably figure it out (two weeks later). I was hoping one of you nice people would help me out.

Specifically, how to change arrayTemp() to each Hex character.

Thank you for your help.
AnswerRe: Data Conversion issue Pin
Luc Pattyn7-Aug-07 6:33
sitebuilderLuc Pattyn7-Aug-07 6:33 
GeneralRe: Data Conversion issue Pin
Cory Kimble7-Aug-07 6:58
Cory Kimble7-Aug-07 6:58 
GeneralRe: Data Conversion issue Pin
Luc Pattyn7-Aug-07 7:16
sitebuilderLuc Pattyn7-Aug-07 7:16 
QuestionHow do I ping another computer? Pin
Rossx7-Aug-07 5:49
Rossx7-Aug-07 5:49 
AnswerRe: How do I ping another computer? Pin
Luc Pattyn7-Aug-07 5:56
sitebuilderLuc Pattyn7-Aug-07 5:56 
GeneralRe: How do I ping another computer? Pin
originSH7-Aug-07 6:16
originSH7-Aug-07 6:16 
GeneralRe: How do I ping another computer? Pin
Luc Pattyn7-Aug-07 6:35
sitebuilderLuc Pattyn7-Aug-07 6:35 
GeneralRe: How do I ping another computer? Pin
'Drew7-Aug-07 7:12
'Drew7-Aug-07 7:12 
GeneralRe: How do I ping another computer? Pin
Luc Pattyn7-Aug-07 7:48
sitebuilderLuc Pattyn7-Aug-07 7:48 
GeneralRe: How do I ping another computer? Pin
'Drew7-Aug-07 7:54
'Drew7-Aug-07 7:54 
GeneralRe: How do I ping another computer? Pin
Luc Pattyn7-Aug-07 13:23
sitebuilderLuc Pattyn7-Aug-07 13:23 
QuestionMoving Text (marquee) in vb.net form Pin
Charanjot Singh7-Aug-07 4:06
Charanjot Singh7-Aug-07 4:06 
AnswerRe: Moving Text (marquee) in vb.net form Pin
Luc Pattyn7-Aug-07 4:16
sitebuilderLuc Pattyn7-Aug-07 4:16 
QuestionNo connection could be made because the target machine actively refused it Pin
Daniel_Logan7-Aug-07 3:51
Daniel_Logan7-Aug-07 3:51 
GeneralRe: No connection could be made because the target machine actively refused it Pin
Guffa7-Aug-07 4:41
Guffa7-Aug-07 4:41 
AnswerRe: No connection could be made because the target machine actively refused it Pin
Dave Kreskowiak7-Aug-07 12:25
mveDave Kreskowiak7-Aug-07 12:25 
QuestionWant to set app(Application path) Pin
Charanjot Singh7-Aug-07 3:27
Charanjot Singh7-Aug-07 3:27 

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.