format exception

dennishea

Active Member
Licensed User
This is the sub it is complaining about. When message window pops up it says an error has occured on sub_logsegment, formatexception.

Sub LogSegment
myvalue(1) = txtx1.Text
myvalue(2) = txty1.Text
myvalue(3) = txtx2.Text
myvalue(4) = txty2.Text
myvalue(5) = txtr.Text
myvalue(6) = myColor
table1.AddRow(myvalue(0),myvalue(6),myvalue(1),myvalue(2),myvalue(3),myvalue(4),myvalue(5))
table1.Refresh
mnulabel1.Text = table1.RowCount
End Sub

It runs fine on desktop but not ppc.

dennishea
 

dennishea

Active Member
Licensed User
Thanks alfcen. I checked myvalue(0) and it was ok. I was sure once saw your question that that was it. Then I thought I never really checked that whole array so I did to discover that one them was null so to solve that problem I checked it before adding the row and if it was blank stuck a zero in it. Again thank for your help.

dennishea
 
Top