Separate/array question

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Separate/array question

Post by Me_again » Sun Sep 28, 2008 12:53 am

Seems that I can't directly shuffle elements in the array resulting from a Separate>

So this doesn't work:

Let>mydata_%k%=mydata_%q%

but this does:

Let>newval=mydata_%q%
Let>mydata_%k%=newval

Is that expected or am I missing something?

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Sun Sep 28, 2008 1:37 am

I don't know that it should or should not be expected but as a matter of habit I always set arrayed variables to another benign variable before use. It always work that way and eliminates frustration... I hate frustration.

Let>kk=1
Let>var_%kk%=one

//Then to retrieve and use
Let>value=var_%kk%
MDL>value

You and I previously discussed more or less this same subject here

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Sun Sep 28, 2008 3:02 am

Hmmm, thanks for the reminder :? I can't reproduce it in a simple example so maybe I fell down the same rabbit hole - twice :(

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