Select case - control statement, Visual Basic Programming

Select Case:

The Select Case is used for handling the multiple paths. The Select Case computes the expression and depending on the value of the equivalent Case statement executes.

Select Case expression

Case value1

Block of one or more VB statements

Case value2

Block of one or more VB Statements

Case value3

Block of one or more VB statements

Case value4

Case Else

Block of one or more VB Statements

End Select

A function WeekDay is used that reads the day, date and time from the computer to demonstrate the use of the select case.

Posted Date: 10/9/2012 8:21:18 AM | Location : United States







Related Discussions:- Select case - control statement, Assignment Help, Ask Question on Select case - control statement, Get Answer, Expert's Help, Select case - control statement Discussions

Write discussion on Select case - control statement
Your posts are moderated
Related Questions
Each piece of data is passed in your process using an argument. Arguments serve like placeholders for the data you wish to pass into your process. You can name your arguments along

In VBScript, You create user-defined constants using the Const statement. It lets you create string or numeric constants along with meaningful names and let you to assign them lite

WINDOWS PROGRAMMING The Windows programming is a developing application using the C and the native Win32 application interface (API) or C++ and the class libraries like Microso

Do While Loop Statement : The statements contained by the do...while loop block executes till the condition given in the while is true. The working of do...loop is elaborate

FEATURES OF USER INTERFACE DESIGN The features like how will the software's are used? Who will be the users? What will be the life of the software? During its lifetime how ofte

Just like normal objects Dictionary object also has definite properties. These properties can be set to any valid value & can be retrieved as and while required. Pr

DIALOG BOXES IN VB The two dialog boxes, namely, the message box and the input box are usually used in the Visual Basic. The message box is used for displaying the messages to

Input Box: To demonstrate the use of the Input Box as shown in figure. Now consider the illustration shown below: 1. Initiate a new project 2. Select the standard exe

two sides are given of a sheet e.g 23*36 i want half or 1/2 of this sheet next i want 1/4(one fourth) of this sheet if sheet size is 23*36 next i want 1/8 similary as above

We will discuss scripting language; called VB Script. VBScript is Microsoft's scripting language. It enables us to write programs which enhance the power of Web pages by letting us