Previous Document Next Document

Object Model Reference : Classes : C : CorelScriptTools : Methods : CorelScriptTools.BuildTime


CorelScriptTools.BuildTime

Function BuildTime(Hour As Long, Minute As Long, Second As Long) As Date

Description

Member of CorelScriptTools

The BuildTime method assigns a time value to a date variable.

Parameter
Description
Hour
Specifies the hour to assign to a date variable. This value is based on a 24-hour clock (so, for example, 5 PM equals 17). Valid values are from 0 to 23 inclusive.
Minute
Specifies the minute to assign to a date variable. Valid values are from 0 to 59 inclusive.
Second
Specifies the second to assign to a date variable. Valid values are from 0 to 59 inclusive.

Example

In the following code example, the first line declares the date variable BigDay, and then this variable is assigned the time 2:30 PM.

DIM BigDay AS DATE
BigDay = BUILDTIME(14, 30, 0)

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.