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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

<strong>VBScript</strong> Keywords<br />

<strong>VBScript</strong> has many keywords. These keywords include the built-in constants and literals, operators,<br />

functions, statements and objects. These keywords are reserved, i.e. they cannot be used as names of<br />

variables or constants.<br />

We have already covered the <strong>VBScript</strong> built-in implicit constants (keywords). Below are the <strong>VBScript</strong><br />

literal keywords, followed by operators, functions, statements and objects.<br />

<strong>VBScript</strong> Literals<br />

Literal keywords are used to define variables and constants, or comparison of variables.<br />

<strong>VBScript</strong> Literal Keywords<br />

Keyword Description<br />

Empty Uninitialized variable value, e.g. a variable it is created but no value has been assigned to it, or<br />

when a variable value is explicitly set to empty. Note: Empty is not the same as Null.<br />

False Boolean condition that is not correct (false has a value of 0)<br />

IsNothing Variable is an initialized object.<br />

IsEmpty Variable is uninitialized.<br />

IsNull Variable contains invalid data.<br />

Nothing Indicates an uninitialized object value, or disassociate an object variable from an object to release<br />

system resources.<br />

Null Variable contains no valid data. Note: This is not the same as Empty or Nothing<br />

True Boolean condition that is correct (true has a value of -1)<br />

The following are example uses literal keywords<br />

Dim valve_closed, pump_on, a<br />

If valve_closed = True Then pump_on = False<br />

a = Empty<br />

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

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

Saved successfully!

Ooh no, something went wrong!