Although the Dim statement is supported for Windows CE, the optional As clause is not. This clause is used to specify a particular type for the declared variable. Since all variables are of type Variant, this clause is unnecessary and can be removed.
Example of statement with this error:
Dim ThisVariable As Integer
Change to:
Dim ThisVariable