W
AVE
R
UNNER
X
I
S
ERIES
194
WRXi-OM-E Rev C
n make a copy of that file in order to experiment with different
ns of brackets.
. . . .
Exit For
trument VBS.
__
. . . .
Wend
Choose the construction that best satis
The construction GoTo LabelledStatement is available
including VBA, but not in VBS.
GOTO
is not allowed in VBS.
IF . . . Then . . . Else . . . En
f
A very simple example:
If A >= 0 Then B = Sqr (A) 'Take the square root of A if A is not negative.
_ 'No End Is needed if all on one line.
e the construction.
These results are from file Brackets.Xls. You ca
combinatio
VBS Controls
Do Do Do
. . . . . . . .
Loop Loop Until . . . . Loop While
Do Until Do While Exit Do
. . . . . . . .
Loop Loop
For . . . Next
GoTo__
This is not allowed in ins
If . . . . Then . . . . _' On one line
If . . . Then
ElseIf . . . Then
End If
If . . . Then . . . End If__
If . . . Then . . . Else . . . End If
Select Case
. . . .
End Select
While
fies the requirements of speed and clarity.
in many languages,
d I
If A + B < C + D Then E = F : G = H
If you need to perform a longer procedure, make this construction:
If A >= 0 Then
B = Sqr (A)
C = 32766 * Sin ( TwoPi * B / PeriodOfSinusoid)
End If ' End If is needed to terminat