9.0

262
Description
Write's expr(s) to StreamNum. String values are quoted. Null values are written as #NULL#. Boolean values are
written as #FALSE# or #TRUE#. Date values are written as #date#. Error codes are written as #ERROR number#.
See Also: Input
, Line Input, Print.
Example
Sub Main
A = 1
B = 2
C$ = "Hello"
Open
"XXX" For Output As #1
Write #1,A,B,C$
Close
#1
End
Sub
Year Function
Syntax
Year(dateexpr)
Group
Time/Date
Description
Return the year.
Parameter Description
dateexpr Return the year for this date value. If this value is Null then Null is returned.
See Also: Date( ), Day( ), Month( ), Weekday( ).
Example
Sub Main
Debug
.Print Year(#1/1/1900#) ' 1900
Debug
.Print Year(#1/1/2000#) ' 2000
End
Sub
Objects Overview
ActiveX Automation provides access to objects in other applications. Each object supports a particular set of
methods
and properties. Each method/property has zero or more parameters. Parameters may be optional, in
which case the parameter can be specified by using name := value.
objexpr
.method [expr][, ...] [param := expr][,...]
Call method
for objexpr.
objexpr.method[([expr][, ...] [param := expr][,...])]