How do I do a math operation (ADD, SUB, DIV, MUL) to a system variable like @STATS.LOGONS@?
For example, divide STATS.LOGONS (total logons during history of system) by 7 to get the average calls per day... (just an example, not really the value I'm looking for).
@CODES@ as embedded in menus and other text screens aren't variables in
the programatic sense. They are substitution codes that are textually replaced in ASCII/ANSI files when those files are sent to the caller.
You can't do arithmetic with them.
If you are coding in BAJA and want to do arithmetic with a system variable you use the ADD, SUB, MUL and DIV operations. I'd recommend copying the value to a user variable first and working with that, though.
@CODES@ as embedded in menus and other text screens aren't variables in the programatic sense. They are substitution codes that are textually replaced in ASCII/ANSI files when those files are sent to the caller.
You can't do arithmetic with them.
I had that figured out... but what are the variable names to access those in BAJA? I've tried them without the @'s and it gives me the error:
!SYNTAX ERROR (expecting variable name):
I'm sure this has been asked before, but I'm at a loss... I'm probably blind and the answer is right in front of me.
How do I do a math operation (ADD, SUB, DIV, MUL) to a system variable like @STATS.LOGONS@?
For example, divide STATS.LOGONS (total logons during history of system) by 7 to get the average calls per day... (just an example, not really the value I'm looking for).
Sysop: | Tandy |
---|---|
Location: | New York, USA |
Users: | 15 |
Nodes: | 13 (0 / 13) |
Uptime: | 65:05:55 |
Calls: | 335 |
Messages: | 113,199 |