63
UbiQ Scenario Manager User Manual
Chapter 5
Functions
Reference
5.2.5
date
Syntax
string date()
Parameters
none
Description
This function returns the current date, its format is fixed as “yyyy/mm/dd”.
Example
string sDate;
setdebug(TRUE);
sDate=date();
debug(“The current date is”,sDate);
See Also
time
5.2.6
debug
Syntax
void debug(variant msg,...)
Parameters
msg: the messages will be shown on the debug window.
... : more variant variables to be shown.
Description
This function will show the values of the argument in the debug window, if the
mode of the debug is TRUE.
Comments
The arguments are variant on type and numbers. You can add any type or num-
bers of variables to this function, but at least one argument for it.
Example
// The example will show the pChar and f1 in the debug window
char pChar[20]; // declare pChar as char[20]
double f1; // declare f1 as double
f1=2.789;
pChar=”The value of f1 is “;
setdebug(TRUE);
debug(pChar,f1); // It will show “The value of f1 is 2.789”
See Also
setdebug, printf
Summary of Contents for UbiQ
Page 1: ...User Manual UbiQ Scenario Manager User Manual V1 03...
Page 4: ...UbiQ Scenario Manager User Manual iv...
Page 7: ...Chapter 1 1 Introduction...
Page 13: ...Chapter 2 2 Getting Started...
Page 37: ...Chapter 3 3 Tutorials...
Page 47: ...Chapter 4 4 Basic of Smart C Script Language...
Page 62: ...UbiQ Scenario Manager User Manual 56...