VB notes - Chapter 4 A Condition is an expression involving...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 4 A Condition is an expression involving relational operators (such as < and =) that is either true or false. Condition also may incorporate logical operators ( Such as And, Or, and Not). An If Block allows a program to decide on a course of action based on whether a certain condition is true. If condition then Action 1 Else Action 2 End If A Select Case block is an efficient decision-making structure that simplifies choosing among several actions. It avoids complex If structures. If blocks make decision based on the true value of a condition: Select Case choice are determined by the value of an expression called a Selector . Each possible action is preceded by a clause of the form. Dim position As Integer ‘selector Position = CInt(txtposition.text) Select Case position Case 1 Action1 Case 2 Action2 Case 4,5 Action 3 Case Else Action 4 End Case Group boxes are passive object that contain related sets of controls. Radio buttons allow the user to make a single choice from among several options. Check box , consist of a small square and a caption, presents the user with a yes/no choice.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Chapter 5 Function procedures and Sub Procedures, that are used to break complex problems into small problems to be solved one at a time. Sub Procedures are referred to as General Procedures. The items inside the parentheses are called Argument. Addition to using built-in functions, we can define functions of our own. These new functions, called Function Procedures or user-defined Function , are use in the same ways as built-in Functions. The variables appearing in the header are called
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 6

VB notes - Chapter 4 A Condition is an expression involving...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online