PBORCA_COMPERR structure

Description

Reports information about an error that occurred when you tried to import and compile objects in a library.

The following functions pass the PBORCA_COMPERR structure to their callback functions:

PBORCA_CompileEntryImport

PBORCA_CompileEntryImportList

PBORCA_CompileEntryRegenerate

Syntax

typedef struct pborca_comperr {
   int iLevel;
   LPTSTR lpszMessageNumber;
   LPTSTR lpszMessageText;
   UINT iColumnNumber;
   UINT iLineNumber;
} PBORCA_COMPERR, FAR *PPBORCA_COMPERR; 

Member

Description

iLevel

Number identifying the severity of the error. Values are:

0 -- Context information, such as object or script name

1 -- CM_INFORMATION_LEVEL

2 -- CM_OBSOLETE_LEVEL

3 -- CM_WARNING_LEVEL

4 -- CM_ERROR_LEVEL

5 -- CM_FATAL_LEVEL

6 -- CM_DBWARNING_LEVEL

lpszMessageNumber

Pointer to a string whose value is the message number

lpszMessageText

Pointer to a string whose value is the text of the error message

iColumnNumber

Number of the character in the line of source code where the error occurred

iLineNumber

Number of the line of source code where the error occurred


Usage

A single error might trigger several calls to the callback function. The first messages report the object and script in which the error occurred. Then one or more messages report the actual error.

For example, an IF-THEN-ELSE block missing an END IF generates these messages:

Lvl

Num

Message text

Col

Line

0

null

Object: f_boolean_to_char

0

0

0

null

Function Source

0

0

4

null

(0002): Error C0031: Syntax error

0

2

4

null

(0016): Error C0031: Syntax error

0

16

4

null

(0017): Error C0031: Syntax error

0

17