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: | Eric Oulashin |
|---|---|
| Location: | Beaverton, Oregon, USA |
| Users: | 119 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 01:08:47 |
| Calls: | 7,381 |
| Files: | 9,253 |
| D/L today: |
34 files (4,721K bytes) |
| Messages: | 385,392 |