Navigation:  ThinBASIC Modules > Core (thinBasic Core Engine) > Core Module Classes > cTimer Class > cTimer Methods >

<cTimer>.SetDescription

Previous pageReturn to chapter overviewNext page

 

Description

 

Sets the description associated with the instantiated cTimer variable.

 

Syntax

 

s = <cTimer>.SetDescription(sDescription)

 

Returns

 

String: previous description

 

Parameters

 

Name

Type

Optional

Meaning

sDescription

String

No

Dynamic string to be passed as description

 

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

...

'---Assign a description

MyTimer.SetDescription("This timer will measure something ...")

...

 

'---Will return "This timer will measure something ..." string

MsgBox 0, MyTimer.GetDescription