Visresult_Object ErrorCode Property

Gets the Integer error code for a vision results object.

...visresult_object.ErrorCode

Prerequisites

None

Parameters

None

Remarks

This property returns the Integer error code for the visresult_object. This is the same value as the PreciseVision ResultErrorCode tool property. A value of 0 indicates that the result was computed successfully and is valid. A positive value indicates a non-critical error occurred during processing, but the result information is valid. A negative value is a standard GPL error code and indicates an error occurred when PreciseVision was computing the result. Please see the section on System Error Codes in the PreciseFlex™ PreciseFlex Library for a list of vision error codes and their interpretation. When a critical error occurs, the associated tool and all of the tools that are dependent upon that tool are not processed.  The dependent tools will also return a critical error condition when they are queried.  When a critical error is indicated, the other properties for the visresult_object may not contain valid information.

Examples

Dim vresult As VisResult
vresult = vobject.Result()
If vresult.ErrorCode <> 0 Then
                                ' Handle error
End If

See Also

Vision Classes |vision_object.ErrorCode