Difference between revisions of "iimGetErrorText"

From iMacros
Jump to: navigation, search
(Examples)
(See Also)
Line 23: Line 23:
 
=== See Also ===
 
=== See Also ===
  
[[iimInit]], [[iimPlay]], [[iimDisplay]], [[iimExit]], [[iimGetExtract]], [[iimTakeBrowserScreenshot]]
+
[[iimOpen]], [[iimPlay]], [[iimDisplay]], [[iimClose]], [[iimGetExtract]], [[iimTakeBrowserScreenshot]]

Revision as of 10:12, 26 October 2011

Returns the text associated with the last error.

Syntax

String err_message = iimGetErrorText()

Parameters

None

Examples

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

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

See Also

iimOpen, iimPlay, iimDisplay, iimClose, iimGetExtract, iimTakeBrowserScreenshot