17.04.2014 Views

Microplate Barcode Labeler User Guide - Agilent Technologies

Microplate Barcode Labeler User Guide - Agilent Technologies

Microplate Barcode Labeler User Guide - Agilent Technologies

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

158<br />

Chapter 8: VCode ActiveX<br />

VCode <strong>User</strong> <strong>Guide</strong><br />

Methods<br />

Abort, Retry, and<br />

Ignore<br />

Note: These are three separate methods.<br />

Description<br />

Aborts, retries, or ignores the process if an error is caught in the error<br />

event handler.<br />

Parameters<br />

None.<br />

Returns<br />

HRESULT<br />

Example<br />

This example refers to abort, retry and ignore.<br />

Visual C++<br />

// This code should appear in the<br />

// OnError event handler<br />

int response = MessageBox( “An error<br />

occurred”, “Error”,<br />

MB_ABORTRETRYIGNORE);<br />

switch( response) {<br />

case IDABORT:<br />

m_VCode.Abort();<br />

break;<br />

case IDRETRY:<br />

m_VCode.Retry();<br />

break;<br />

Visual Basic<br />

Dim response As Integer<br />

response = MsgBox("An error occurred",<br />

vbAbortRetryIgnore)<br />

Select Case response<br />

Case vbAbort<br />

VCode1.Abort<br />

Case vbIgnore<br />

VCode1.Ignore<br />

Case vbRetry<br />

VCode1.Retry<br />

End Select<br />

case IDIGNORE:<br />

m_VCode.Ignore();<br />

break;<br />

}<br />

AboutBox<br />

Displays the About Box message box, which includes the ActiveX<br />

version and firmware version of the currently connected VCode if<br />

initialized.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!