Sounds complicated at first, but let's try...
I have in my project 6 variables:
case1 = 0 or 1
case2 = 0 or 1
case3 = 0 or 1
case4 = 0 or 1
case5 = 0 or 1
casenumber, = from 1 to 5
Those 'caseX' variables represent the status (on or off) of that particular case, I could use matrix but that's not my issue (I think). I want to call "caseX' based on the number provided in "casenumber". is there a function like 'valueOf("case" & casenumber)'?