C
cinnie
hello to all
Some of my procedures have code like this:
Select Case n
Case is = 1
Select Case Marker
Case is >15.4
....
Case is >12.7
....
Case is > 8.3
....
End Select
Case is = 2
Select Case Marker
Case is >14.7
....etc
In my code, n runs from case 1 to case 7, and each of these values has 3
Marker cases.
The problem is that every year the values change and I have to go into the
code and manually alter them. What's worse, next year, n may range from 1 to
5, for example, but there may be, say, 6 cases of Marker consider for each n.
Question 1: I'd much rather just use a table like below, but I don't know
how to code the nested Select case statements.
n : 1 1 1 2 ......
Marker : 15.4 12.7 8.3 14.7 ......
Question 2: There are a few places where I use a combobox showing the
values of n as a list, say 1 to 7. Again, I have to recode these each year.
How can I make the combobox show whatever distinct values of n are in the
table above?
much thanks
Some of my procedures have code like this:
Select Case n
Case is = 1
Select Case Marker
Case is >15.4
....
Case is >12.7
....
Case is > 8.3
....
End Select
Case is = 2
Select Case Marker
Case is >14.7
....etc
In my code, n runs from case 1 to case 7, and each of these values has 3
Marker cases.
The problem is that every year the values change and I have to go into the
code and manually alter them. What's worse, next year, n may range from 1 to
5, for example, but there may be, say, 6 cases of Marker consider for each n.
Question 1: I'd much rather just use a table like below, but I don't know
how to code the nested Select case statements.
n : 1 1 1 2 ......
Marker : 15.4 12.7 8.3 14.7 ......
Question 2: There are a few places where I use a combobox showing the
values of n as a list, say 1 to 7. Again, I have to recode these each year.
How can I make the combobox show whatever distinct values of n are in the
table above?
much thanks