Handling Compilation Errors

Compilation errors result from incorrectly constructed code. If you incorrectly type a keyword, omit some necessary punctuation, or use a Next statement without a corresponding For statement at design time, the toolkit detects these errors when you compile the application. In addition, because the language used in the toolkit is based on VBScript, certain standard statements you may use when developing an application in Visual Basic 6.0 cause an error when you develop an application using the toolkit. Typically, these errors occur because a statement is unsupported. The following types of error can be generated due to unsupported syntax:

In addition to these syntax-related errors, compilation errors can occur when transporting a compiled .vb file to an emulator or Windows CE-based device. The following sections describe the syntax and file-related errors you may receive when compiling an application.