Write an If . . . Then . . . Else statement that checks the value in
Question:
Write an If . . . Then . . . Else statement that checks the value in the variable chrGender for the value M (Male) or \(\mathrm{F}\) (Female) and assigns the information shown in Figure 5-89 to lblCollegeExpectation.Text based on the gender. If the variable chrGender contains a value other than \(\mathrm{M}\) or \(\mathrm{F}\), assign the message "Invalid Gender" to lblCollegeExpectation.Text.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Microsoft Visual Basic 2017 For Windows Web And Database Applications
ISBN: 9781337102117
1st Edition
Authors: Corinne Hoisington
Question Posted: