Difference between revisions of "iimGetErrorText"

From iMacros
Jump to: navigation, search
(Examples)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Returns the text associated with the last error.  
+
Returns the error or success message associated with the last scripting interface method call.  
  
=== Syntax ===  
+
=== Syntax [[Image:IMacros-icon.png|iMacros Browser]] [[Image:Ie-icon.png|IE Plug-in]] [[Image:Ff-icon.png|Firefox]] [[Image:Cr-icon.png|Chrome]] ===  
  
 
  String err_message = iimGetErrorText()
 
  String err_message = iimGetErrorText()
Line 23: Line 23:
 
=== See Also ===
 
=== See Also ===
  
[[iimInit]], [[iimPlay]], [[iimDisplay]], [[iimExit]], [[iimGetExtract]], [[iimTakeBrowserScreenshot]]
+
[[iimOpen]], [[iimPlay]], [[iimDisplay]], [[iimClose]], [[iimGetExtract]], [[iimTakeBrowserScreenshot]]

Latest revision as of 00:56, 11 January 2017

Returns the error or success message associated with the last scripting interface method call.

Syntax iMacros Browser IE Plug-in Firefox Chrome

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