Let>NumTimesToLoop=21
Let>Counter=0
Let>Index=6
Label>StartOfLoop
//Let>B6_SIZE=4098
LibFunc>hIE,ExtractTag,r,%IE[0]%,,B,Index,0,PropertyName
MidStr>r_6,1,r,MYNAME
//Message>MYNAME
//wait>5
//.. do something
//..
Let>Properties[%Counter%] = %PropertyName%
Add>Counter,1
Add>Index,1
If>Counter=NumTimesToLoop,FinishLoop
Goto>StartOfLoop
Label>FinishLoop
Let>NumTimesToLoop=5
Let>Counter=0
Label>StartOfSecondLoop
Message>Properties[%Counter%]
//I have tried this Message>%Properties[%Counter%]%
Wait>5
Add>Counter,1
If>Counter=NumTimesToLoop,FinishSecondLoop
Goto>StartOfSecondLoop
Label>FinishSecondLoop
Hello,
I am trying to receive the value from the array given the counter value as the array index.
i tried send Properties[%Counter%] and it outputs Properties[%Counter%]
I tried message>Properties[%Counter%] and it outputs Properties[%Counter%]
I had checked the debugger and each array index of Properties contains the names of the properties. So i am wondering what is wrong?
Ben
I am trying to send or message a value in an array
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Remove the spaces in this line:
Let>Properties[%Counter%] = %PropertyName%
Should be:
Let>Properties[%Counter%]=%PropertyName%
[Unless you are using the IGNORESPACES directive]
Next you need to do:
Let>displayit=Properties[%Counter%]
MessageModal>displayit
Let>Properties[%Counter%] = %PropertyName%
Should be:
Let>Properties[%Counter%]=%PropertyName%
[Unless you are using the IGNORESPACES directive]
Next you need to do:
Let>displayit=Properties[%Counter%]
MessageModal>displayit
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?