Type Declaration Characters Not Supported

Visual Basic allows variables to be followed by a type-declaration character to specify a particular type. Since variable types are not supported for Windows CE, the type-declaration characters cause errors in a Windows CE project.

Example of statement with this error:

Dim ThisVariable%

Change to:

Dim ThisVariable

You may need to convert from a string literal.

Visual Basic appends a trailing pound sign (#) to certain large integer constants to signify that they are actually double-precision floating point values. Visual Basic does this based on the value entered, regardless of how you entered it. This syntax is incompatible with the Windows CE Toolkit for Visual Basic. To work around this problem, you can represent the number as a string literal, and convert it to double precision, as show below.

Example of statement with this error:

ThisVariable = 123456789012345#
ThisVariable = 4#

Change to:

ThisVariable = CDbl("123456789012345")
ThisVariable = CDbl("4.0")