On my Program a user enters a subject score in a text boxeg txtMaths.
I want code to ensure that only a score between 0 and 100 inclusive is accepted.
Also I want code to assign a grade for the score entered in the text box above eg
100-80 A
79-60 B
59-40 C
39-0 D
The score is entered in the text box and the grade id displayed in a label eg lblMathsgr
If I have a list of subjects and a list of corresponding text boxes(for scores) and labels ( for the grades) should I use a control array? will I have to repeat the code if each box does the same thing ie accept input and display grade.
2007-03-13
15:13:34
·
3 answers
·
asked by
candy
1
in
Computers & Internet
➔ Programming & Design