I know that we can parse a CSV line ( ';' separator ) with something like that :
delim = ';'
myline="i;want;to;know;what;love;is"
parse var myline w1 (delim) w2 (delim) w3 (delim) w4 (delim) w5 (delim) w6 (delim) w7
say w1 w2 w3 w4 w5 w6 w7
I want to know if there is a way to simplify the iteration of the 'w# (delim)'in order to do something like :
parse var myline w1 (delim) w2 (delim) ... (delim) w6 (delim) w7
/* then we will have all w1 to w7 defined
I could do a function with some array to do that but is it possible natively on rexx, i was just wondering
Thanks