Presentation is loading. Please wait.

Presentation is loading. Please wait.

 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 24 - VBScript Outline 24.1 Introduction 24.2 Operators 24.3 Data Types and Control Structures.

Similar presentations


Presentation on theme: " 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 24 - VBScript Outline 24.1 Introduction 24.2 Operators 24.3 Data Types and Control Structures."— Presentation transcript:

1  2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 24 - VBScript Outline 24.1 Introduction 24.2 Operators 24.3 Data Types and Control Structures 24.4 VBScript Functions 24.5 VBScript Example Programs 24.6 Arrays 24.7 String Manipulation 24.8 Classes and Objects 24.9 Operator Precedence Chart Internet and World Wide Web Resources

2  2001 Prentice Hall, Inc. All rights reserved Operators

3  2001 Prentice Hall, Inc. All rights reserved Operators

4  2001 Prentice Hall, Inc. All rights reserved Data Types and Control Structures

5  2001 Prentice Hall, Inc. All rights reserved Data Types and Control Structures

6  2001 Prentice Hall, Inc. All rights reserved Data Types and Control Structures

7  2001 Prentice Hall, Inc. All rights reserved Data Types and Control Structures

8  2001 Prentice Hall, Inc. All rights reserved. Outline 8 1 ’ VBScript 2 For y = 2 To 20 Step 2 3 Call MsgBox( "y = " & y ) 4 Next Fig Using keyword Step in VBScript’s For repetition structure. For repetition structure with keyword Step

9  2001 Prentice Hall, Inc. All rights reserved VBScript Functions

10  2001 Prentice Hall, Inc. All rights reserved VBScript Functions

11  2001 Prentice Hall, Inc. All rights reserved VBScript Functions

12  2001 Prentice Hall, Inc. All rights reserved VBScript Functions

13  2001 Prentice Hall, Inc. All rights reserved. Outline 13 Addition.html 1 2 Our first VBScript Click the button to add an integer to the total Set type to VBScript. Option Explicit statement.Define procedure OnClick for the cmdAdd button. Use CInt to convert input values from string subtype to integer subtype.

14  2001 Prentice Hall, Inc. All rights reserved. Outline 14 Addition.html Program Output

15  2001 Prentice Hall, Inc. All rights reserved. Outline 15 Site.html 1 2 Select a site to browse Select a site to browse Deitel & Associates, Inc Prentice Hall Prentice Hall Interactive

Ads by Google