18.01.2013 Views

VBScript Reference Manual for InduSoft Web Studio

VBScript Reference Manual for InduSoft Web Studio

VBScript Reference Manual for InduSoft Web Studio

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>VBScript</strong> <strong>Reference</strong> <strong>Manual</strong> <strong>InduSoft</strong> <strong>Web</strong> <strong>Studio</strong><br />

<strong>VBScript</strong> Statements<br />

<strong>VBScript</strong> Statements<br />

Call ExecuteGlobal Private Select Case<br />

Class Exit Property Get Set<br />

Const For Each…Next Property Let Stop<br />

Dim For…Next Property Set Sub<br />

Do…Loop Function Public While…Wend<br />

Erase If…Then…Else Randomize With<br />

End On Error ReDim<br />

Execute Option Explicit Rem<br />

<strong>VBScript</strong> Declaration Statements<br />

Function Description<br />

Class Declares the name of a class, as well as a definition of the variables, properties, and methods<br />

that comprise the class<br />

Const Declares constants <strong>for</strong> use in place of literal values<br />

Dim Declares variables and allocates storage space<br />

Function Declares the name, arguments, and code that <strong>for</strong>m the body of a Function procedure<br />

Option Forces explicit declaration of all variables in a script.<br />

Explicit<br />

Private Declares private variables and allocates storage space. Declares, in a Class block, a private<br />

variable.<br />

Property Get Declares, in a Class block, the name, arguments, and code that <strong>for</strong>m the body of a Property<br />

procedure that gets (returns) the value of a property<br />

Property Let Declares, in a Class block, the name, arguments, and code that <strong>for</strong>m the body of a Property<br />

procedure that assigns (sets) the value of a property<br />

Property Set Sets a reference to an object<br />

Public Declares public variables and allocates storage space. Declares, in a Class block, a public<br />

variable<br />

ReDim Declare dynamic array variables, and allocates or reallocates storage space at the procedural<br />

level<br />

Sub Declares the name, arguments, and code that <strong>for</strong>m the body of a Sub procedure.<br />

<strong>VBScript</strong> Array Statements<br />

Function Description<br />

Dim Declares variables and allocates storage space<br />

Erase Reinitializes the elements of fixed-size arrays and deallocates dynamic-array storage space.<br />

ReDim Declare dynamic array variables, and allocates or reallocates storage space at the procedural level<br />

<strong>VBScript</strong> Procedure Statements<br />

Function Description<br />

Call Transfers control to a Sub or Function procedure<br />

End Function End of a Function<br />

End Sub End of a Sub<br />

Exit Function Exit a Function, generally as a result of a condition<br />

Exit Property Forces an exit from inside a Property Set function<br />

Exit Sub Exit a Subroutine, generally as a result of a condition<br />

Function Declares the name, arguments, and code that <strong>for</strong>m the body of a Function procedure<br />

Sub Declares the name, arguments, and code that <strong>for</strong>m the body of a Sub procedure<br />

(Subroutine).<br />

170 <strong>InduSoft</strong>, Ltd.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!