Hi
I am trying to set some elements to values depending on the selection in a
test box. The first possible value that can be selected should set
fmttest1= "", fmttest2=" to " and fmttest3="". The second value that can be
selected from the test box should set the fmttest1 ="From ", fmttest2=" to
", fmttest3=" less than".
here is what i have so far but i cannot get an if statement to apply the
condition to more than one item.
private void lbSelect_SelectedIndexChanged(object sender, System.EventArgs
e)
{
if (lbSelect.SelectedIndex=0)
(fmttext1="" fmttext2=" to " fmttest3="");
else if ((lbSelect.SelectedIndex=1)
(fmttext1="From " fmttext2=" to " fmttext3=" less than ");
}
} }
I know this syntax is wrong - but what is the correct way to use many
elements in an if statement - should i use a select or case statement?
thanks
Doug