| Sysop: | KK4QBN |
|---|---|
| Location: | Chatsworth, GA |
| Users: | 22 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 24:00:04 |
| Calls: | 1,220 |
| Calls today: | 0 |
| Files: | 94,829 |
| U/L today: |
0 files (0K bytes) |
| D/L today: |
116 files (131M bytes) |
| Messages: | 30,454 |
| Posted today: | 0 |
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).