9.0
178
Hour Function
Syntax
Hour(dateexpr)
Group
Time/Date
Description
Return the hour of the day (0 to 23).
Parameter Description
dateexpr Return the hour of the day for this date value. If this value is Null then Null is
returned.
See Also: Minute( ), Second( ), Time( ).
Example
Sub Main
Debug
.Print Hour(#12:00:01 AM#) ' 0
End
Sub
If Statement
Syntax
If condexpr Then [instruction] [Else instruction]
-or-
If condexpr
Then
statement
s
[ElseIf condexpr
Then
statement
s]...
[Else
statement
s]
End
If
-or-
If TypeOf objexpr
Is objtype Then ...
Group
Flow Control
Description
Form 1: Single line if statement. Execute the instruction following the Then if condexpr is True. Otherwise, execute
the instruction
following the Else. The Else portion is optional.
Form 2: The multiple line if is useful for complex ifs. Each if condexpr
is checked in turn. The first True one causes










