9.0

218
Print #StreamNum, [expr[; ...][;]]
Group
File
Description
Print the expr(s) to StreamNum. Use ; to separate expressions. A num is it automatically converted to a string
before printing (just like Str$( )
). If the instruction does not end with a semicolon, then a new line is printed at the
end.
See Also: Input
, Line Input, Write.
Example
Sub Main
A = 1
B = 2
C$ = "Hello"
Open
"XXX" For Output As #1
Print #1,A;",";B;",""";C$;""""
Close
#1
End
Sub
Private Definition
Syntax
Private [WithEvents] name[type][([dim[, ...]])] [As [New] type][, ...]
Group
Declaration
Description
Create arrays (or simple variables) which are available to the entire macro/module, but not other macros/modules.
Dimension var array(s) using the dim
s to establish the minimum and maximum index value for each dimension. If
the dim
s are omitted then a scalar (single value) variable is defined. A dynamic array is declared using ( ) without
any dim
s. It must be ReDimensioned before it can be used. The Private statement must be placed outside of Sub,
Function
or Property blocks.
See Also: Dim
, Option Base, Public, ReDim, Static, WithEvents.
Example
Private A0,A1(1),A2(1,1)
C:\ABCTemp\vbs\Sub_Definition.htm
Sub
Init
A0 = 1
A1(0) = 2
A2(0,0) = 3
End
Sub
C:\ABCTemp\vbs\Sub_Definition.htm