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: | Ragnarok |
|---|---|
| Location: | Dock Sud, Bs As, Argentina |
| Users: | 137 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 147:01:50 |
| Calls: | 15,368 |
| Calls today: | 1 |
| Files: | 20,060 |
| D/L today: |
19 files (2,867K bytes) |
| Messages: | 1,800,277 |