Array reading

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
AutoDude
Newbie
Posts: 1
Joined: Fri Feb 09, 2018 8:58 am

Array reading

Post by AutoDude » Fri Feb 09, 2018 9:19 am

Hi All

First post, so go easy if its a silly question :-)

I have an array declared (List) and I want to find a match in my Array and then store the 3 item that follows it in variables

ArrayFind>List,searchString,nIndex,0
Let>nIndex=nIndex+1
Let>strA=List_nIndex
Let>nIndex=nIndex+1
Let>strB=List_nIndex
Let>nIndex=nIndex+1
Let>strC=List_nIndex

This works just fine but I was wondering if its possible to somehow get these two lines combined into one?
Let>nIndex=nIndex+1
Let>strC=List_nIndex

Tried all kinds of combinations of experessions but nothing seems to yield a good result.

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Array reading

Post by Marcus Tettmar » Mon Feb 12, 2018 9:56 am

No, but it should be:

Let>nIndex=nIndex+1
Let>strC=List_%nIndex%
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts