CreateClock()

Syntax:

CreateClock( Name, Variable, Format )

Return:

The newly created Clock object, or NULL if the Clock could not be created (if any of the parameters are incorrect for example).

Parameters:

Name – the name of the Clock object in OpusScript. Name must be surrounded in quote marks. This parameter is required.

Variable – the name of the variable that will display the Clock object on a page within the publication. Variable must be surrounded in quote marks. This parameter is required.

Format – the formatting of the clock on the page. A Clock object measures hours, minutes and seconds. Hours are formatted either as [h] or [hh]; minutes are formatted as [m] or [mm]; and seconds are formatted as [s] or [ss]. Other characters can be placed within the format. This parameter is optional and the default format is: [hh]:[mm]:[ss].

Remarks:

This function will create a Clock object in OpusScript. The clock can be displayed on a page inside the named Variable. The clock will not start until the clock Start function is executed.

image\Script_Button.jpgExamples