en:software:qview:qview_6:qcl_library:vi10geterrorcode

This translation is older than the original page and might be outdated. See what has changed.

VI10GetErrorCode

V = Vector

I = Image

Function that is used to manage the Vector Image function (object that resides on some Qpaint versions).

The VI10GetErrorCode function is used in order to know any kind of error occurred during drawing to Vector Image.
At the end of the drawing procedure, after calling the “VI10WaitBufferReadyUsingWAIT” function or the “VI10WaitBufferReadyUsingEND” function to wait the end of the drawing, if you raise an error, through this function is used to determine the cause.

VI10GetErrorCode (awBuffer,Error)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
IN ARRSYS /
ARRGBL
awBuffer W Array that serves as a buffer for instructions/data
OUT GLOBAL Error W Variable containing the type of error
  • No error
  • Protocol error
  • Non-compliant data
  • Arc-Center calculation not possible

Example

TASK_00

MAIN:
 
VI10DrawBuffer(awBuffer )			;Draws the contents of the Buffer
 
VI10WaitBufferReadyUsingEND( awBuffer )	        ;Awaits the conclusion of the drawing
 
VI10GetErrorCode( awBuffer, Error )	        ;Check if there are errors
 
IF (gwError GE 1) AND (gwError LE 3)
      JUMP ERROR
ENDIF

Note

  • Last modified: 2019/08/29 17:01