<cTimer> constructor

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > Date and Time > cTimer >

<cTimer> constructor

 

Description

 

Instantiate a cTimer variable.

 

Syntax

 

MyTimer = New cTimer[(Name)]

 

Returns

 

None.

 

Parameters

 

Name

Type

Optional

Meaning

Name

String

Yes

Optional timer name. Can be used to store any string info regarding the timer

 

Remarks

 

Restrictions

 

See also

 

Examples

 

'---Create a class variable

Dim MyTimer  As cTimer

 

'---Instantiate the class variable. This will automatically call internal Constructor

MyTimer = New cTimer("TIMER1")

 

'---Alternative syntax create and instantiate in one line

Dim myTimer As New cTimer