2024 2025 Student Forum > Management Forum > Main Forum

 
  #1  
24th May 2017, 10:21 AM
Unregistered
Guest
 
IIMSET Example

Hi I would like to have information about iimset as well as the structure and also the parameters of iimset with example?
  #2  
24th May 2017, 10:21 AM
Super Moderator
 
Join Date: Mar 2013
Re: IIMSET Example

iimSet() characterizes factors for use inside the large scale and doles out qualities to them. There are confinements with reference to what factors you can set utilizing this summon. You can set all implicit factors which you likewise can set by means of the charge line. Moreover, you can set all client characterized factors. After iimPlay all factors are eradicated. The arrival code is dependably 0.

Sentence structure

int ret_code = iimSet ( String VARNAME, String VARVALUE )

Parameters

String VARNAME


A string characterizing which variable is to be set. The variable is made by iimSet. It doesn't need to be characterized some place. Utilize VARNAME to make a client characterized variable named (case harsh). Note: You can not utilize any of the inherent factors with iimSet.

String VARVALUE

The esteem which is to be alloted to the variable.

As opposed to TAG summons, clear spaces must not be supplanted by <SP>. iimSet() deals with that.

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("myloop", CStr(i))
iret = imacros.iimPlay("mymacro")
Next


Note that variables defined with iimSet lose their values after each iimPlay. This is by design. If you want to use the same variables and values in another macro, you need to use iimSet again:

iret = imacro.iimSet("greeting", "hello")
iret = imacros.iimPlay("1st-macro")

iret = imacro.iimSet("greeting", "hello")
iret = imacros.iimPlay("2nd-macro")


Quick Reply
Your Username: Click here to log in

Message:
Options




All times are GMT +5. The time now is 04:20 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
SEO by vBSEO 3.6.0 PL2

1 2 3 4