Error CS1010: Newline in constant

Discussion in 'Questions (Windows Mobile)' started by hlo, Apr 30, 2009.

  1. hlo

    hlo Member Licensed User

    I have suddenly got this error;
    Error CS1010: Newline in constant
    Line Number: 637
    Line:End SUb
    when compiling on the desktop.


    The below subroutine has been working fine till now with nothing changing (that I am aware of).
    Oddly enough, I don't get the error when I compile in the handheld.
    I can't figure it out.

    Here is the routine:
    hk3 has been defined as a hardkey.

    Sub hk3_HardKeyPressed 'hardkey up, down and enter detect
    Select hk3.KeyPressed
    Case hk3.KeyUp
    'msgbox("up")
    c4=c4-1
    Case hk3.KeyDown
    'msgbox("down")
    c4=c4+1
    Case hk3.KeyEnter
    If c4=0 Then
    Msgbox("choose a menu option")
    Else
    dimmok_click
    End If
    End Select
    hk3case
    End Sub

    thanks, HLO
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Can you upload your source code?
     
  3. hlo

    hlo Member Licensed User

    got it

    I figured it out.
    some duplicate references to harwarekeys from some cut and pasteing I did.
     
Loading...
  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