User Manual
78 WaveLab Concepts
setUTCMonth(month [, date])
setFullYear(year [, month [, date]])
setUTCFullYear(year [, month [, date]])
toUTCString()
Example:
//Create a new date object
var d = new Date();
//Print it out in the log window
logWindow.printInfo(d);
//Get just the hours
logWindow.printInfo(d.getHours());
RegExp Objects
Functions
exec(string)
test(string)
toString()
Example:
//Create a new regular expression defining a 5 digit number
var reg = new RegExp(/^\d{5}$/);
//Test a string with it to see if it contains a 5 digit number
var isFiveDigit = reg.test("12345");
//Trace the result to the log window
logWindow.printInfo(isFiveDigit);
Error Objects
Values
name
message
Functions
toString()
WaveLab 7