I have looping structure where depending on the iteration of the loop will effect what variuable I assign the result to. For example loop iteration 1 assign result to string1 where string is common in all variable names and the numeric portion is variable. In iteration2 of the loop I want to assign the results to string2 and so on until the looping process is complete is there an easy way to do the variable assignment in one statement as opposed to do something like this
select case loopcount
case 1 string1 = midstr(lineoftext, startpos, endpos)
case 2 string2 = midstr(lineoftext. startpos, endpos)
startpos and endpos are controlled within the loop to return different parts of the string depending on where I am upto in the string.