IsError / LastError

Top  Previous  Next

Object: EHL7Interface.eUtilities

FileName: EHL7Interface.dll

 

PROPERTY

 

These two properties go hand in hand

 

Name: IsError

DataType: Boolean

Mode: Readonly

Description: Returns the error state of the object

 

PROPERTY

 

Name: LastError

DataType: String

Mode: Readonly

Description: Returns the last error message generated by the eUtilities object.

 

Every time you issue a call to a method in the EHL7Interface.eUtilities object you can check these two properties.

 

If IsError is True you can display or act on the contents of the LastError Property.

 

Example:

 

Dim myInterfaceObj As New EHL7Interface.eUtilities

myInterfaceObj.VendorPath = "C:\Some\Folder\ThatDoesNot\Exist"

If myInterfaceObj.IsError Then

       MsgBox myInterfaceObj.LastError

       'Would display 'Invalid Installation Folder'

End If

 

See Also: ClearErrors method