VBS TUTORIAL: VBScript statement-feature introduction _vbs

Source: Internet
Author: User

VBScript statement

Description language Elements
Handing control over to a Sub or Function procedure. Call statement
Declares the name of a class. Class statement
Declares constants that are used to replace literal values. Const statement
Declare variables and allocate storage space. Dim statement
Repeats a statement block when a condition is true or before a condition becomes true . Do ... Loop statement
Initializes the elements of the fixed-size array and frees the storage space for the dynamic array. Erase statement
Executes one or more specified statements. Execute statement
Executes one or more statements in the global namespace of a script. Executeglobal statement
Quit do ... Loop, for... Next,Function , or Sub code block. Exit statement
Executes a set of statements repeatedly up to a specified number of times. For ..... Next statement
Repeats a set of statements for each element in an array or collection. For Each ... Next statement
Declares the name, parameters, and code of a Function procedure. Function statement
Conditionally executes a set of statements based on the value of an expression. If ... Then ... Else statement
Activates error handling. On Error statement
Forces an explicit declaration of the variables used in a script. Option Explicit Statement
Declare private variables and allocate storage space. Private statement
Declares the name, parameters, and code of a Property procedure that obtains (returns) the value of an attribute. Property Get Statement
Declares the name, parameter, and code of a Property procedure that specifies the value of an attribute. Property Let statement
Declares the name, parameters, and code of a property procedure that sets a reference to an object. Property Set Statement
Declare public variables and allocate storage space. Public statement
Initializes a random number generator. Randomize statement
Declare a dynamic array variable and allocate or reallocate storage space at the procedure level. ReDim statement
Include explanatory notes in the program. Rem statement
Executes one or more sets of statements, depending on the value of an expression. Select Case Statement
Assigns an object reference to a variable or property. Set statement
Declares the name, parameters, and code of a Sub procedure. Sub statement
Executes a series of statements when the given condition is True ... While ... Wend Statement
Executes 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.