Usage
Dim varname[([subscripts])][, varname[([subscripts])]] . . .
Arguments
varname
Name of the variable; follows standard variable naming conventions.
subscripts
Dimensions of an array variable; up to 60 multiple dimensions may be declared.
The subscripts argument uses the following syntax:
upperbound [,upperbound] . . .
The lower bound of an array is always zero.
variable name definitions
A named storage location that can contain data that can be modified during program execution.
Each variable has a name that uniquely identifies it within its level of scope.
Variable names:
• Must begin with an alphabetic character.
• Can’t contain an embedded period or type-declaration character.
• Must be unique within the same scope.
• Must be no longer than 255 characters.
If...Then...else Statement
Conditionally executes a group of statements, depending on the value of an expression.
If condition Then statements [Else elsestatements ]
Or, you can use the block form syntax:
If condition Then
[statements]
[ElseIf condition-n Then
[elseifstatements]] . . .
[Else
[elsestatements]]
End If
Arguments
condition
One or more of the following two types of expressions:
A numeric or string expression that evaluates to
True
or
False
. If
condition
is
Null,
condition
is treated as
False
.
An expression of the form
TypeOf
objectname
Is
objecttype
. The
objectname
is any
object reference and
objecttype
is any valid object type. The expression is
True
if
objectname
is of the object type specified by
objecttype
; otherwise it is
False
.
statements
One or more statements separated by colons; executed if
condition
is
True
.
22-7
Chapter 22: Distributed Control using Visual Basic
Summary of Contents for Sensaphone SCADA 3000
Page 1: ...Sensaphone SCADA 3000 User s Manual Version 2 34...
Page 6: ...vi SCADA 3000 User s Manual...
Page 10: ...x SCADA 3000 User s Manual...
Page 30: ...1 6 SCADA 3000 User s Manual...
Page 48: ...4 6 SCADA 3000 User s Manual...
Page 70: ...9 8 SCADA 3000 User s Manual...
Page 122: ...12 8 SCADA 3000 User s Manual...
Page 190: ...15 30 SCADA 3000 User s Manual...
Page 211: ...lead 1 lag 0 else lead 0 lag 1 16 21 Chapter 16 Programming in C...
Page 212: ...16 22 SCADA 3000 User s Manual...
Page 236: ...21 8 SCADA 3000 User s Manual...
Page 248: ...22 12 SCADA 3000 User s Manual...
Page 258: ...23 10 SCADA 3000 User s Manual...
Page 274: ...25 8 SCADA 3000 User s Manual...
Page 288: ...27 8 SCADA 3000 User s Manual...
Page 294: ...28 6 SCADA 3000 User s Manual...
Page 296: ...A 2 SCADA 3000 User s Manual...
Page 302: ...D 2 SCADA 3000 User s Manual...
Page 318: ...I 2 SCADA 3000 User s Manual...
Page 320: ...J 2 SCADA 3000 User s Manual...
Page 322: ...K 2 SCADA 3000 User s Manual...
Page 335: ...Test Log...
Page 336: ......