To store the current time in hh:mm:ss format.
The internal variable &Time is the value of the Time function recorded at the beginning of the program. In case it’s used in a Report header, the time will be displayed every time the header is evaluated, and not when the page is printed.
Data Type: Character (8)
Examples
In an Orders Transaction object the time at which each order was entered is recorded.
Rules:
OrderHour = &Time if insert On AfterValidate;
The variable &Time is evaluated at the beginning of the transaction so the recorded time corresponds to that moment.
If the function Time() is used:
OrderHour = Time() if insert On AfterValidate;
The value written in the record corresponds to the moment in which the rule is evaluated; therefore, it is not necessarily evaluated at the beginning of the transaction.
Scope
Objects: Procedure object, Transaction object, Web Panel object
See also
Built-in Variable List
Time function
Systime function