Difference between revisions of "iimGetErrorText"

From iMacros
Jump to: navigation, search
(Created page with "Returns the text associated with the last error. === Syntax === String err_message = iimGetErrorText() === Parameters === None === Examples === Display a dialog if iM...")
 
(Examples)
Line 15: Line 15:
 
  Dim imacros, iret  
 
  Dim imacros, iret  
 
  Set imacros = CreateObject("imacros")  
 
  Set imacros = CreateObject("imacros")  
  iret = imacros.iimInit()  
+
  iret = imacros.iimOpen()  
 
  If iret < 0 Then  
 
  If iret < 0 Then  
 
   MsgBox "An error occured: " + vbNewline + _  
 
   MsgBox "An error occured: " + vbNewline + _  

Revision as of 10:11, 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

iimInit, iimPlay, iimDisplay, iimExit, iimGetExtract, iimTakeBrowserScreenshot