iimGetLastError()

From iMacros
Jump to: navigation, search

Returns the text associated with the last error.

Name change: Please use iimGetErrorText instead. See API enhancements for details.

Syntax

String err_message = iimGetLastError()

Parameters

None

Examples

Display a dialog if iMacros cannot be initialized (Visual Basic Script example):

Dim imacros, iret 
Set imacros = CreateObject("imacros") 
iret = imacros.iimInit() 
If iret < 0 Then 
  MsgBox "An error occured: " + vbNewline + _ 
    imacros.iimGetLastError() 
End If

See Also

iimInit, iimPlay, iimDisplay, iimExit, iimGetLastExtract, iimTakeBrowserScreenshot