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: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,043 |
Nodes: | 15 (0 / 15) |
Uptime: | 46:47:06 |
Calls: | 500,902 |
Calls today: | 5 |
Files: | 109,370 |
D/L today: |
5,955 files (725M bytes) |
Messages: | 304,278 |