ComponentOne Query 8.0
Error Event

Syntax

control_Error (ErrorNumber As Long, Description As String, CancelDisplay As Boolean)

Notes

Event applies to both C1Query and C1QueryFrame control.

Arguments

ErrorNumber is the error code identifying the error condition, see Error Codes.

Description is the error message text. You can change the error message text setting this argument.

CancelDisplayis set to Falseon entering the event procedure. Setting it to True prevents the control from showing the standard error message. Set this argument to True if you want to show your own message or just ignore the error.

Description

Errors occur under following circumstances:

Error in the value entered by the end user while editing a constant value. ErrorNumber: 501, Description: “Invalid data format”. The Error event is fired in the C1QueryFrame control.

Error in the end user query or schema detected while executing the BuildSQL method. Error conditions described in Error Codes belong to this category, if their description in Error Codes does not state otherwise. The Error event is fired in C1QueryFrame control if it is an error in the end user query, and in C1Query control for other errors.

Errors occurring during reading and writing files and other operations specified in Error Codes.

Using the Error event, you can change the Description shown in the standard error message box, or completely override the standard error handling (the error message box) by showing your own message or simply ignoring the error. To override the standard error message box, set the CancelDisplay argument to True.

See Also

Error Codes

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback