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
iimSet()
Assigns values to variables. There are limitations as to what variables you can set using this command. You can set all built-in variables which you also can set via the command line. Additionally, you can set all user defined variables. After iimPlay all variables are erased. The return code is always 0.
Syntax
int ret_code = iimSet ( String -var_VARNAME, String VARVALUE )
Parameters
- String VARNAME
- A string defining which variable is to be set. Use VARNAME to create a user defined variable named VARNAME.
- String VARVALUE
- The value which is to be assigned to the variable.
Examples
Loop over a number, for example to extract one table element after the other
Dim imacros, iret, i Set imacros = CreateObject("imacros") iret = imacros.iimInit() For i=0 To 4 ' You have to convert the value into a string! iret = imacro.iimSet("-var_myloop", CStr(i)) iret = imacros.iimPlay("mymacro") Next