VBS Tutorial: VBscript statements-function Introduction

Source: Internet
Author: User

VBScript statement
Description Language Element
Give control to oneSubOrFunctionProcess. Call Statement
Declare the name of a class. Class statement
The constant used to replace the text value. Const statement
Declare variables and allocate buckets. Dim statement
When a condition isTrueOr when a condition changesTrueExecute a statement block again. Do... Loop statement
Reinitialize elements of a fixed-size array and release the storage space of a dynamic array. Erase statement
Execute one or more specified statements. Execute statement
Execute one or more statements in the global namespace of a script. ExecuteGlobal statement
ExitDo... Loop,For... Next,FunctionOrSubCode block. Exit statement
Execute a group of statements repeatedly for a specified number of times. For... Next statement
Execute a group of statements repeatedly for each element in an array or set. For Each... Next statement
DeclareFunctionThe name, parameters, and code of the process. Function statement
Execute a group of statements conditionally based on the value of an expression. If... Then... Else statement
Activate error handling. On Error statement
Forcibly declare the variables used in a script. Option Explicit statement
Declare private variables and allocate buckets. Private statement
DeclarePropertyThe name, parameters, and code of the process. This process gets (returns) the value of an attribute. Property Get statement
DeclarePropertyThe process name, parameters, and code. This process specifies the value of an attribute. Property Let statement
DeclarePropertyThe name, parameters, and code of the process. This process is used to reference an object. Property Set statement
Declare Public variables and allocate buckets. Public Statement
Initialize the random number generator. Randomize statement
Declare dynamic array variables and allocate or re-allocate buckets at the process level. ReDim statement
Including explanatory descriptions in the program. Rem statement
Execute one or more statements based on the value of an expression. Select Case statement
Assign an object reference to a variable or attribute. Set statement
DeclareSubThe name, parameters, and code of the process. Sub statement
The given condition isTrueExecute a series of statements .. While... Wend statement
Execute a series of statements on a single object. With statement

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.