
VBScript in a Nutshell
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Intro
- Table of Contents
- Foreword
- Preface
- Why This Book?
- Who Should Read This Book?
- How This Book Should Be Used
- If You're New to VBScript
- If You're a VBScript Programmer
- If You're a VB or VBA Developer New to VBScript
- How This Book Is Structured
- The Format of the Language Reference
- Conventions in This Book
- How To Contact Us
- Acknowledgments
- I
- Introduction
- VBScript's History and Uses
- What VBScript Is Used For: Gluing Together Objects
- Properties
- Methods
- Events
- Differences Between VBScript and VBA
- Program Structure
- Functions and Procedures
- Defining Subroutines: The Sub . . . End Sub Construct
- Calling a Subroutine
- Defining Functions: The Function . . . End Function Construct
- Passing Variables into a Subroutine
- Exiting a Routine with the Exit Statement
- Classes
- The Class Construct
- Class Variables
- Class Properties
- Class Methods
- Class Events
- Global Code
- Active Server Pages
- Windows Script Host
- Client-Side Scripts for Internet Explorer
- Outlook Forms
- Reusable Code Libraries
- Active Server Pages
- Windows Script Host
- Client-Side Scripts for Internet Explorer
- Data Types and Variables
- VBScript Data Types: The Many Faces of the Variant
- Variant Data Types
- Determining the Variant Type
- VarType
- TypeName
- Converting from One Data Type to Another
- Variables and Constants
- What Is a Variable?
- What Is a Constant?
- Intrinsic Constants
- Constants in Type Libraries
- Declaring Variables and Constants
- Option Explicit
- Array Variables
- Fixed arrays
- Dynamic arrays
- Determining array boundaries: UBound and LBound
- Multidimensional arrays
- Dynamic multidimensional arrays
- Using UBound with multidimensional arrays
- Scope and Visibility
- Global scope
- Local scope
- Public visibility
- Private
- Error Handling and Debugging
- Debugging
- Syntax Errors
- Syntax errors at compile time
- Syntax errors at runtime
- Logical Errors
- Logical errors that affect program results
- Logical errors that generate error messages
- The Microsoft Script Debugger
- Launching the Script Debugger
- The Script Debugger interface
- Tracing execution with the Script Debugger
- Determining the value of a variable, expression, or function at runtime
- Changing variable values at runtime
- Error Handling
- The On Error Resume Next Statement
- The Err Object
- Err object properties
- Err object methods
- Common Problem Areas and How to Avoid Them
- VBScript with Active Server Pages
- How ASP Works
- The global.asa File
- Including Server-Side Script in Web Pages
- Active Server Pages Object Model
- Programming Outlook Forms
- Why Program Outlook Forms?
- The Form-Based Development Environment
- Interfaces and Objects
- Outlook Form Design Mode
- The VBScript Environment
- Running Your Code
- Program Flow
- The Outlook Object Model
- The Current Item
- The Inspector Object
- The Pages Collection
- The FormDescription Object
- The NameSpace Object
- The MAPIFolder Object
- Outlook Constants
- Accessing Other Object Models
- Windows Script Host 5.6
- Why Use WSH?
- Running WSH Scripts
- Program Flow
- Simple Script Files
- Script Files with XML Code
- The WSH Object Model
- The WScript Object
- The WshArguments Object
- The WshController Object
- The WshEnvironment Object
- The WshNamed Object
- The WshNetwork Object
- The WshRemote Object
- The WshRemoteError Object
- The WshScriptExec Object
- The WshShell Object
- The WshShortcut Object
- The WshSpecialFolders Object
- The WshUnnamed Object
- The WshUrlShortcut Object
- WSH Language Elements
- Accessing Other Object Models
- VBScript with Internet Explorer
- The &SCRIPT& Tag
- &SCRIPT& Attributes
- The LANGUAGE attribute
- The SRC attribute
- The FOR attribute
- Where to Place the &SCRIPT& Tag
- Using &!----& with &SCRIPT&
- What Can You Do with Client-Side Scripting?
- Interacting with the Client
- Handling Events
- Data Validation
- Understanding the IE Object Model
- The Window Object
- The Document Object
- The Elements Collection and HTML Intrinsic Controls
- The textbox control
- The checkbox control
- The radio button control
- The list box
- Command button controls
- The History Object
- The Event Object
- Using the Document Object Model
- Windows Script Components
- The Script Component Wizard
- Writing Component Code
- Using the Component
- Registration
- Instantiating the Component
- WSC Programming Topics
- Handling Events
- Using an Interface Handler: ASP
- Using Resources
- Building an Object Model
- II
- The Language Reference
- Abs Function
- Array Function
- Asc, AscB, AscW Functions
- Atn Function
- Call Statement
- CBool Function
- CByte Function
- CCur Function
- CDate Function
- CDbl Function
- Chr, ChrB, ChrW Functions
- CInt Function
- Class Statement
- CLng Function
- Const Statement
- Cos Function
- CreateObject Function
- CSng Function
- CStr Function
- Date Function
- DateAdd Function
- DateDiff Function
- DatePart Function
- DateSerial Function
- DateValue Function
- Day Function
- Dictionary Object
- Dictionary.Add Method
- Dictionary.CompareMode Property
- Dictionary.Count Property
- Dictionary.Exists Method
- Dictionary.Item Property
- Dictionary.Items Method
- Dictionary.Key Property
- Dictionary.Keys Method
- Dictionary.Remove Method
- Dictionary.RemoveAll Method
- Dim Statement
- Do . . . Loop Statement
- Drive Object
- Drives Collection Object
- End . . . Statement
- Erase Statement
- Err Object
- Err.Clear Method
- Err.Description Property
- Err.HelpContext Property
- Err.HelpFile Property
- Err.Number Property
- Err.Raise Method
- Err.Source Property
- Escape Function
- Eval Function
- Execute Statement
- ExecuteGlobal Statement
- Exit Statement
- Exp Function
- File Object
- File.Copy Method
- File.Delete Method
- File.Move Method
- File.OpenAsTextStream Method
- File System Object Model
- Files Collection Object
- FileSystemObject Object
- FileSystemObject.BuildPath Method
- FileSystemObject.CopyFile Method
- FileSystemObject.CopyFolder Method
- FileSystemObject.CreateFolder Method
- FileSystemObject.CreateTextFile Method
- FileSystemObject.DeleteFile Method
- FileSystemObject.DeleteFolder Method
- FileSystemObject.DriveExists Method
- FileSystemObject.Drives Property
- FileSystemObject.FileExists Method
- FileSystemObject.FolderExists Method
- FileSystemObject.GetAbsolutePathName Method
- FileSystemObject.GetBaseName Method
- FileSystemObject.GetDrive Method
- FileSystemObject.GetDriveName Method
- FileSystemObject.GetExtensionName Method
- FileSystemObject.GetFile Method
- FileSystemObject.GetFileName Method
- FileSystemObject.GetFileVersion Method
- FileSystemObject.GetFolder Method
- FileSystemObject.GetParentFolderName Method
- FileSystemObject.GetSpecialFolder Method
- FileSystemObject.GetStandardStream Method
- FileSystemObject.GetTempName Method
- FileSystemObject.MoveFile Method
- FileSystemObject.MoveFolder Method
- FileSystemObject.OpenTextFile Method
- Filter Function
- Fix Function
- Folder Object
- Folder.Copy Method
- Folder.CreateTextFile Method
- Folder.Delete Method
- Folder.Move Method
- Folders Collection Object
- Folders.Add Method
- For . . . Next Statement
- For Each . . . Next Statement
- FormatCurrency, FormatNumber, FormatPercent Functions
- FormatDateTime Function
- Function Statement
- GetLocale Function
- GetObject Function
- GetRef Function
- Hex Function
- Hour Function
- If . . . Then . . . Else Statement
- Initialize Event
- InputBox Function
- InStr, InStrB Functions
- InstrRev Function
- Int Function
- Is Operator
- IsArray Function
- IsDate Function
- IsEmpty Function
- IsNull Function
- IsNumeric Function
- IsObject Function
- Join Function
- LBound Function
- LCase Function
- Left, LeftB Functions
- Len, LenB Functions
- LoadPicture Function
- Log Function
- LTrim Function
- Match Object
- Matches Collection Object
- Me Keyword
- Mid, MidB Functions
- Minute Function
- Month Function
- MonthName Function
- MsgBox Function
- Now Function
- Oct Function
- On Error Statement
- Option Explicit Statement
- Private Statement
- Property Get Statement
- Property Let Statement
- Property Set Statement
- Public Statement
- Randomize Sub
- ReDim Statement
- RegExp Object
- RegExp.Execute Method
- RegExp.Global Property
- RegExp.IgnoreCase Property
- RegExp.Pattern Property
- RegExp.Replace Method
- RegExp.Test Method
- Rem Statement
- Replace Function
- RGB Function
- Right, RightB Functions
- Rnd Function
- Round Function
- RTrim Function
- ScriptEngine Function
- ScriptEngineBuildVersion Function
- ScriptEngineMajorVersion Function
- ScriptEngineMinorVersion Function
- Second Function
- Select Case Statement
- SetLocale Function
- Set Statement
- Sgn Function
- Sin Function
- Space Function
- Split Function
- Sqr Function
- StrComp Function
- String Function
- StrReverse Function
- Sub Statement
- Tan Function
- Terminate Event
- TextStream Object
- TextStream.Close Method
- TextStream.Read Method
- TextStream.ReadAll Method
- TextStream.ReadLine Method
- TextStream.Skip Method
- TextStream.SkipLine Method
- TextStream.Write Method
- TextStream.WriteBlankLines Method
- TextStream.WriteLine Method
- Time Function
- Timer Function
- TimeSerial Function
- TimeValue Function
- Trim Function
- TypeName Function
- UBound Function
- UCase Function
- Unescape function
- VarType Function
- Weekday Function
- WeekdayName Function
- While . . . Wend Statement
- With Statement
- Year Function
- III
- Language Elements by Category
- Array Handling
- Assignment
- Comment
- Constants
- Data Type Conversion
- Date and Time
- Dictionary Object
- Error Handling
- File System Objects
- Information Functions
- Mathematical and Numeric
- Miscellaneous
- Object Programming
- Program Structure and Flow
- String Manipulation
- User Interaction
- Variable Declaration
- VBScript Constants
- Color Constants
- Comparison Constants
- Date and Time Constants
- Date Format Constants
- Error Constant
- Logical and TriState Constants
- Message Box Constants
- String Constants
- Variable Type Constants
- Operators
- Arithmetic Operators
- String Operator
- Comparison Operators
- The Is Operator
- Logical and Bitwise Operators
- Operator Precedence
- Locale IDs
- The Script Encoder
- How Encoding and Decoding Works
- Script Encoder Syntax
- Encoding Examples
- Encoding .vbs Files
- Encoding .wsf Files
- Encoding ASP Files with Client-Side Script
- Index
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.