copy(PR,arr[get(i)].value);
trace(PR=,PR); <!-- no get here! -->
your 2nd example is strange... why do you expect %2 if you do only proc(pr) ??
proc("a") -> %1 = "a"
proc("a","b") -> %1 = "a", %2 = "b"
etc..
The second example is the separator "|"proc(get(arr[0].value), get(arr[1].value)); --> this will give you %1="a,b" %2="c,d"
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »San7« (3. Oktober 2017, 02:57)
or...
txtsplit('a,b',',',arr);
proc(get(arr[0].value1),get(arr[1].value));
</action>
trace(proc=,%1,%2);
</action>
but.. you could also do this...
delete(arr);
txtsplit('a,b,c,d,e',',',arr);
proc(arr);
</action>
set(pr,'');
for(set(i,0), i LT %1.count, inc(i),
txtadd(pr,get(pr),get(%1[get(i)].value));
);
trace(pr);
</action>
great! Thank you for your helpful examples!welcome to krpano