Navigation:  thinBasic Modules > Core > Core Module Classes > cTimer Class > cTimer Methods >

cTimer constructor

Previous pageReturn to chapter overviewNext page

 

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")