Notes week 08

Walter’s Teaching
Pages

Visual Basic – Class Notes – Week 8

Homepage ] Office Hours ] Class Listings ] Lab Schedule ] Student Login ] Some interesting links ]


Class Notes: Visual Basic

Week: 8

Chapter 5 – Decisions

Brief Review of Quiz

5.2 If Blocks continued

Example #4 – pg. 208 – Use of Ucase()

ElseIf Construct – pg. 208

Comments – pg. 210, 211

5.3 Select Case Statement

The select case simplifies choosing between choosing several actions – pg.
221

General form of the Select Case statement is: – pg. 223

Select Case selector

Case valueList1

Action1

Case valueList2

Action2

…….

Case Else

Action of last resort

End Select

Once a correct answer is determined, the Select
Statement stops processing

Indenting is optional

Case Else is a "catch all" option…

Case Else is optional, although usually of good form
to write it.

5 things which a Case might be – pg. 223

Example #2 – pg 222

Example #5 – pg. 226

Example #6 – pg. 227

CASE STUDY – 5.4 – pg. 237 – 244 – cover the logic…


Copyright ©2001-2002, Walter Wimberly – Instructor and all
’round Cool Guy – IADT