Hello,
I can do this:
Let>ListVars=Force;Mass
Let>ListValues=2;3
Separate>%ListVars%,;,list_names
Separate>%ListValues%,;,list_values
Let>k=0
Repeat>k
Let>k=k+1
Message>list_names_%k%
but I cant do this:
Let>Name = list_names_%k%
Send>%Name%
or I cant do this
Send>list_names_%k%
What am I doing wrong?
Ben
How do I send> an list element that has been separated.
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
You *CAN* do this:
Let>Name=list_names_%k%
Send>%Name%
Did you mean to include the spaces?
For compound variables (variables with embedded variables) like this you need to first assign them to a simple variable. As above. Hence Send>list_names_%k% would just send e.g. literal list_names_2 if k was 2.
And unless you are using VAREXPLICIT you don't need the % symbols round Name in the Send line.
Let>Name=list_names_%k%
Send>%Name%
Did you mean to include the spaces?
For compound variables (variables with embedded variables) like this you need to first assign them to a simple variable. As above. Hence Send>list_names_%k% would just send e.g. literal list_names_2 if k was 2.
And unless you are using VAREXPLICIT you don't need the % symbols round Name in the Send line.
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?