Download Programmer`s Reference
Transcript
OLE Automation 103 In effect, the least significant byte of the return value contains the ErrorDetail number, one byte higher you will find the ErrorType value. Example The following Visual Basic® sample code reads the LastError property and returns the corresponding type and detail numbers (for the non-Visual-Basic programmers: the "\" denotes an integer division, Mod a modulo operation). ' ... ' do critical operation here, e.g. opening a check routine ' ... ' get debug information Dim LastErrorNumber as Integer LastErrorNumber = NCApplication.LastError If LastErrorNumber <> 0 Then MsgBox "LastError returned " & CStr(LastErrorNumber) _ & ", Error Type: " & CStr(LastErrorNumber \ 256) _ & ", Error Detail: " & CStr(LastErrorNumber Mod 256) End If ' ... Left The Left property returns or sets the distance between the left edge of the physical screen and the main application window. See Figure 17. Syntax object.Left [=value] The object placeholder represents the NCApplication object. Return Type VT_I4 LicenseLevel The LicenseLevel property returns the license level of NeuroCheck encoded in the security key. Syntax object.LicenseLevel The object placeholder represents the NCApplication object.