Freetutes.com

VB6 beginners tutorial - Learn VB6

Advanced VB6 tutorial - Learn Advanced VB6

VB .NET - Learn Visual Basic .NET

Systems Analysis - System analysis and Design tutorial for Software Engineering


You are here: Visual Basic > Advanced VB6 tutorial > Chapter 11

Using the Error Statement

The Error statement can be used to simulate or force errors to occur. The syntax is as follows:

Error <error number>

For example,

Error 51

generates an Internal Error.

The Error statement is available in Visual Basic 6 for compatibility with older versions. With Version 6, you should use the Raise method of the Err object.


  

<< Previous | Contents | Next >>

Home | About Us | Privacy Policy | Contact Us

Copyright © Freetutes.com | All Rights Reserved