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