|
Programming > Visual Basic > Downloads > Case Functions
|
This is a basic program demonstrating the case function in Visual Basic. The case function can be used instead of the if...then...else statement when there are a lot of possible inputs from a user. The outline of the program is given below:
- The user is prompted first to enter a number.
- The number is compared against the possible outcomes in the program. If the number is not valid, an error message is displayed and the user is asked to input another number.
- If a valid number (1-7) is entered, a message box is displayed with the corresponding day.
Download Now   (6KB Zip file)
Search for "Visual Basic" on:
Google |
Kelkoo |
Amazon |
eBay (UK) |
eBay (US)
Search for "Visual Basic" on the rest of Computing Students: Visual Basic
Find Visual Basic (VB) Programming Books in the Computing Students Computer Science Book Shop
|
|
|