The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
Difference between revisions of "iimGetErrorText"
Jump to navigation
Jump to 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...") |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | Returns the | + | 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 15: | Line 15: | ||
Dim imacros, iret | Dim imacros, iret | ||
Set imacros = CreateObject("imacros") | Set imacros = CreateObject("imacros") | ||
− | iret = imacros. | + | iret = imacros.iimOpen() |
If iret < 0 Then | If iret < 0 Then | ||
MsgBox "An error occured: " + vbNewline + _ | MsgBox "An error occured: " + vbNewline + _ | ||
Line 23: | Line 23: | ||
=== See Also === | === See Also === | ||
− | [[ | + | [[iimOpen]], [[iimPlay]], [[iimDisplay]], [[iimClose]], [[iimGetExtract]], [[iimTakeBrowserScreenshot]] |
Revision as of 21:56, 10 January 2017
Returns the error or success message associated with the last scripting interface method call.
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