Hi, I have a piece of code that looks like this:
Select Case ID
Case 1
var1 = "something"
var2 = "something"
var3 = "something"
Case 2
var1 = "somethingelse"
var2 = "somethingelse"
var3 = "somethingelse"
Case 3
var1 = "somethingddd"
var2 = "somethingddd"
var3 = "somethingddd"
End Select
Its a very simple case statement as you can see. Now the problem now is that the ID will go to 1000, and therefore I need to do a lot of case 4, case 5, case 6, etc..
Does anyone have some idea what alternative I have to this? I know I could use IF conditions but its the same thing, it must be a different way than typing a long script with 1000 lines of conditional code.
Any idea will be appreciated thanks
Select Case ID
Case 1
var1 = "something"
var2 = "something"
var3 = "something"
Case 2
var1 = "somethingelse"
var2 = "somethingelse"
var3 = "somethingelse"
Case 3
var1 = "somethingddd"
var2 = "somethingddd"
var3 = "somethingddd"
End Select
Its a very simple case statement as you can see. Now the problem now is that the ID will go to 1000, and therefore I need to do a lot of case 4, case 5, case 6, etc..
Does anyone have some idea what alternative I have to this? I know I could use IF conditions but its the same thing, it must be a different way than typing a long script with 1000 lines of conditional code.
Any idea will be appreciated thanks