30.07.2013 Views

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

158 Control Structures: Part 2 Chapter 5<br />

Common <strong>Program</strong>ming Error 5.5<br />

When using the optional Case Else statement in a Select Case structure, failure <strong>to</strong><br />

place the Case Else as the last Case is a syntax error. 5.5<br />

Testing and Debugging Tip 5.3<br />

Provide a Case Else in Select Case structures. Cases not handled in a Select Case<br />

structure are ignored unless a Case Else is provided. The inclusion of a Case Else statement<br />

facilitates the processing of exceptional conditions. In some situations, no Case Else<br />

processing is needed. 5.3<br />

Case statements also can use relational opera<strong>to</strong>rs <strong>to</strong> determine whether the controlling<br />

expression satisfies a condition. For example<br />

Case Is < 0<br />

uses keyword Is along with the relational opera<strong>to</strong>r,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!