OK, I am new to Basic4ppc, but I can make this work in other languages.
Select ComboBox18.SelectedIndex
Case 0,1,7 RiskVal=RiskVal + 1
Case 2,3,5,6 RiskVal=RiskVal + 2
Case 4 RiskVal=RiskVal + 5
Case else RiskVal=RiskVal + 0
End Select
I know I can use ComboBox.SelecttedIndex to update RiskVal as in
RiskVal=RiskVal + ComboBox3.SelectedIndex + 1
which works just fine, so what part of the syntax of the Case statement is illuding me, it just returns a 0 value.
Select ComboBox18.SelectedIndex
Case 0,1,7 RiskVal=RiskVal + 1
Case 2,3,5,6 RiskVal=RiskVal + 2
Case 4 RiskVal=RiskVal + 5
Case else RiskVal=RiskVal + 0
End Select
I know I can use ComboBox.SelecttedIndex to update RiskVal as in
RiskVal=RiskVal + ComboBox3.SelectedIndex + 1
which works just fine, so what part of the syntax of the Case statement is illuding me, it just returns a 0 value.