Variable Filter
Posted: Sun Jul 20, 2014 4:32 pm
ciao all,
I'm filtering the content of a variable in this way
something like: give me all the chunks starting with 1 or 2 or 3
but, if I want, for example, only those that starts with 1 or 2. how can I do without repeating the code like:
tLivInizio could be the lower value, tLivFine the upper
franco
I'm filtering the content of a variable in this way
Code: Select all
filter tTempList with "[1-3]*"
but, if I want, for example, only those that starts with 1 or 2. how can I do without repeating the code like:
Code: Select all
switch tNumLiv
case 3
filter tTempList with "[1-3]*"
--put tNumLiv into tLivInizio
--put tNumLiv into tLivFine
break
case 2
filter tTempList with "[1-2]*"
--put 1 into tLivInizio
--put tNumLiv into tLivFine
break
etc.
......
....
franco