119
A
Common Visual Basic Scripting
Expressions
In
T
his
A
ppendi
x
Ov
e
rvi
e
w
..................................................................................................................................................................197
I
nSt
r
........................................................................................................................................................................197
I
nSt
rR
e
v
...................................................................................................................................................................199
I
s
N
ume
ri
c................................................................................................................................................................201
L
en..........................................................................................................................................................................201
L
e
f
t..........................................................................................................................................................................202
LC
ase......................................................................................................................................................................203
LTri
m and
RTri
m.......................................................................................................................................................203
Mi
d..........................................................................................................................................................................203
M
sg
B
o
x
....................................................................................................................................................................204
N
o
w
.........................................................................................................................................................................206
R
ep
l
ace...................................................................................................................................................................206
Ri
ght........................................................................................................................................................................208
UC
ase......................................................................................................................................................................208
D
o…
L
oop.................................................................................................................................................................209
If
...
T
hen...
El
se..........................................................................................................................................................210
Fil
e S
y
stem
O
b
j
ect...................................................................................................................................................212
R
ead
i
ng
Fil
es...........................................................................................................................................................213
M
o
vi
ng,
C
op
yi
ng, and
D
e
l
et
i
ng
Fil
es.........................................................................................................................214
Ov
er
v
iew
This appendix includes a list of common Visual Basic scripting functions. For a complete
reference to VB scripting refer the following Microsoft web site:
http:\\www.msdn.microsoft.com\\vbscript
InStr
Returns the position of the first occurrence of one string within another string.
InStr([start, ]string1, string2[, compare])
Ov
er
vi
e
w
197