# COMPUTER IV LESSON 2

60 %
40 %
Information about COMPUTER IV LESSON 2
Education

Published on July 3, 2008

Author: sdreyes102877

Source: authorstream.com

Slide 1: June 30 - July 3, 2008 Prepared by: SDReyes 1 Slide 2: June 30 - July 3, 2008 Prepared by: SDReyes 2 Lesson Objectives Slide 3: June 30 - July 3, 2008 Prepared by: SDReyes 3 (Program with declaration of Variable, elseif and conjunction AND) DIM A AS INTEGER A = TXTAREA Or Else MsgBox (“out of range”) Slide 4: June 30 - July 3, 2008 Prepared by: SDReyes 4 SYNTAX: ( Case Statement) SELECT CASE <EXPRESSION> CASE <TEST – RANGE 1> <STATEMENT> CASE <TEST – RANGE 2> <STATEMENT> END SELECT Example: Select Case txtArea Case 101 To 1000 MsgBox ("BIG”) Case 0 To 100 MsgBox (“small”) End Select SAMPLE PROGRAM : June 30 - July 3, 2008 Prepared by: SDReyes 5 SAMPLE PROGRAM Area of a rectangle with CASE Statement Private Sub cmdcompute_click() TXTArea = Val(TXTLength) * Val(TXTWidth) Select Case txtArea Case 101 To 1000 MsgBox ("BIG”) Case 0 To 100 MsgBox (“small”) End Select End Sub Slide 6: June 30 - July 3, 2008 Prepared by: SDReyes 6 CMDCOMPUTE _ click With variable declaration A = L * W Dim A, L, W As Integer A = txtarea L = txtLength W = txtWidth Select Case A Case 101 To 1000 MsgBox ("BIG”) Case 0 To 100 MsgBox (“small”) Case Is < 0 MsgBox (“out of range”) Case Is > 1000 MsgBox (“out of range”) End select You can change the two CASE IS with this code: Case Else Msgbox(“out of range”)

 User name: Comment:

## Related presentations

#### Energy and Metabolism fall 2017 posted

September 23, 2017

#### Module Five—WRIT 5930

September 23, 2017

#### Accounting tokens

September 23, 2017

#### Mobile Repairing Course In Noida

September 23, 2017

#### Digital Marketing Training Company in jaipur Seo T...

September 15, 2017

#### Websharan Infotech Web Devlopment company In Jaipu...

September 18, 2017

## Related pages

### Computer Lessons, Part IV - YouTube

Basic copying and pasting lessons with keyboard shortcuts, etc. Thanks to my friends Bill and Gloria.

### Computer Lessons for Grade 4 - BU Personal Websites

Computer Lessons for Grade 4: Welcome to the class! This is unit one of the course Introduction to Computers.This site will give students at the fouth ...

### Computer Basics: What is a Computer? - Free Online ...

A computer is an electronic device that manipulates information, or data. It has the ability to store, retrieve, and process data. You probably already ...

### Computers & Internet Lesson Plans, Ideas, and Activities

This section of The Lesson Plans Page contains computer lesson plans, computer ideas, computer lessons, computer thematic units, internet lessons, internet

### PARTS OF A COMPUTER (Class III, IV and V) thinking of ...

PARTS OF A COMPUTER (Class III, IV and V) ... 2 What is kind of ... These lessons will spend a lot of time talking about files.

### Macmillan McGraw-Hill

Computer Literacy Lessons: Unit 1: Online Computer Literacy Practice: Computer Basics: Unit 2: Online Computer Literacy Practice: Use the Mouse and Keyboard:

### Introduction to Computers - Lesson 2 - Memory Basics - YouTube

Introduction to Computers - Lesson 2 - Memory Basics ... Introduction to Computers - Lesson 1 - The CPU - Duration: 16:16. wilkuacode 32,253 views.