format exception

Discussion in 'Questions (Windows Mobile)' started by dennishea, Dec 22, 2007.

  1. dennishea

    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
    mnulabel1.Text = table1.RowCount
    End Sub

    It runs fine on desktop but not ppc.

  2. alfcen

    alfcen Well-Known Member Licensed User

    What is hidden in myvalue(0) ?
  3. 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.

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice