TLowder
Programmer
- Mar 20, 2002
- 224
Is is possible to use goto with a variable?
It probably just isn't possible in the same way you can't refer to forms and controls directly as variables.
For example -
Without having to doing this -
Thanks,
Tom
It probably just isn't possible in the same way you can't refer to forms and controls directly as variables.
For example -
Code:
Dim x as integer
x = (retrieve some value - 1,2,3 etc.)
goto x
1..
2..
3..
Without having to doing this -
Code:
Dim x as integer
x = (retrieve some value - 1,2,3 etc.)
select case x
case 1
goto 1
case 2
goto 2
case 3
goto 3
end select
1..
2..
3..
Thanks,
Tom