<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > BuiltIn Functions > Date and Time > cTimer > cTimer Methods > <cTimer>.SetDescription |
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