Computing Students - Computer Science Degree Notes
Home Contact Shop Notes Questions Programming Links Dictionary Coursework FORUM Tutors
  Recommended Amazon Searches: Computer Science | Computing | Computer Systems | Database | Computing Revision  

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






Home | Contact | Shop | Notes | Questions | Programming | Links | Dictionary | Coursework | Tutors Sponsored Links: Affiliate Program Articles | Computer Science Definitions | CS Degree Notes
Copyright © 2005-2009 ComputingStudents.com
This site is to be used in accordance with the ComputingStudents.com User Agreement
High Wycombe Web Design