GenApi Grid Control Reference 14.1
Events

Functions

void CVCError (ErrorCode ErrorNumber, BSTR ErrorString, boolean *Continue)
 This event is fired, if an error occurs in the CVGenApiGrid Control. More...
 
void VisibleNodeUpdated (BSTR NodeName)
 Generated when a visible Node has changed. More...
 

Detailed Description

Function Documentation

◆ CVCError()

void CVCError ( ErrorCode  ErrorNumber,
BSTR  ErrorString,
boolean *  Continue 
)

This event is fired, if an error occurs in the CVGenApiGrid Control.

This is used for general error reporting, for example invalid value sets by a user or write/read access errors regarding the remote device.

The user can overwrite the Continue value in order to change the default action. The default value depends on the function that caused the error.

TRUE specifies that a message box will appear to inform the user of the error. FALSE means that it is possible to perform custom error handling, e.g. use a self-defined message-box.

Please include the appropriate header file for your compiler (cvcerror.*). The following error codes have been defined:

1CVC_E_ERROR
 This error cannot be described more precisely.
2CVC_E_PARAMETER
 Incorrect parameter in a function call.
3CVC_E_FILEIO
 File I/O error, for example while saving or loading an image.
5CVC_E_MEMORY
 Memory could not be allocated.
11CVC_E_PROPERTYREAD
 A property could not be read.
12CVC_E_PROPERTYWRITE
 A property could not be written.
14CVC_E_PORTREAD
 A port could not be read.
15CVC_E_PORTWRITE
 A port could not be written.
17CVC_E_NOINTERFACE
 No interface is available.
19CVC_E_NOTSUPPORTED
 A certain feature is not supported.
22CVC_E_NOTENOUGHDATA
 Too few data available for a calculation.
29CVC_E_WRONGOBJECT
 Wrong object.
30CVC_E_NOTREADY
 Not ready for the requested operation.
45CVC_E_ACCESS
 Access error.
46CVC_E_NOTPRESENT
 Not present.
47VC_E_UNSUPPORTEDFEATURE
 Unsupported feature.
Parameters
[in]ErrorNumberA unique number describing the error (see above).
[in]ErrorStringContains the error text of the output.
[in,out]ContinueThis specifies whether execution should continue despite the error.
Related Topics:
Complete List of all CVCErrorCodes, Image Control CVCErrorEvent, Display Control CVCErrorEvent

◆ VisibleNodeUpdated()

void VisibleNodeUpdated ( BSTR  NodeName)

Generated when a visible Node has changed.

The happens for example if a new value is set to a node by the user or a new value is polled.

Attention
This event is only fired for feature nodes currently visible in the UI.