CS1002 error when Optimize Compiling

Discussion in 'Questions (Windows Mobile)' started by burd27, Dec 29, 2007.

  1. burd27

    burd27 Member Licensed User

    I have just downloaded V6.01 and when I try to do a Optimized compile, I get the CS1002 error. This error supposedly indicates a missing semicolon ";". However I cannot see where in the code there is supposed to be one.

    eg: If StrAt(CurrentFocus,StrLength(CurrentFocus)-1)="1" Then
    txtJob1.Focus = true
    CurrentFocus = "Job1"
    End If

    Here the second line (txtJob1.Focus = true) is logged as missing a semicolon.

    In another case the following code produced the same error:

    Let SortJob = Job(z-1)

    .....however, if I get rid of the "Let", then the error is not produced - why, I don't know.

    The complete code had no problems with v5.80

    Thanks in advanced.
  2. Erel

    Erel Administrator Staff Member Licensed User

    Focus is a method (with 0 arguments), not a property.
    You should write:

    Let is not a valid keyword.
  3. burd27

    burd27 Member Licensed User

    Thank you. :sign0060:

    Compiles okay now.

  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