This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== CONSTANTS ====== There are three new functions which return accounting information. Each function will return a value based on a parameter passed to it. Several constants have been added to make accessing these values easier. The following list details these consts and what they are used for. for use with PCBACCOUNT() only! | val | const | Associated value | |----:|:----------------|:-------------------------------------------------| | 0 | NEWBALANCE | Credits Given to a new user account | | 1 | CHRG_CALL | Credits charged for a call | | 2 | CHRG_TIME | Credits charged for time used (in minutes) | | 3 | CHRG_PEAKTIME | Credits charged for peak time used | | 4 | CHRG_CHAT | Credits charged for chat session | | 5 | CHRG_MSGREAD | Credits charged for reading a message | | 6 | CHRG_MSGCAP | Credits charged for capturing a message | | 7 | CHRG_MSGWRITE | Credits charged for writing a message | | 8 | CHRG_MSGECHOED | Credits charged for writing an echoed message | | 9 | CHRG_MSGPRIVATE | Credits charged for writing a private message | | 10 | CHRG_DOWNFILE | Credits charged for downloading a file | | 11 | CHRG_DOWNBYTES | Credits charged for downloading bytes | | 12 | PAY_UPFILE | Credits given for uploading a file | | 13 | PAY_UPBYTES | Credits given for uploading bytes | | 14 | WARN_LEVEL | Credit threshold for low credit warning | **The following are for use with PCBACCSTAT() only!** | val | constant | Associated value | |------:|:-----------|:--------------------------------------------| | 0 | ACC_STAT | Returns status of the "Enable Accounting" | | | | switch in the PWRD file. | | | | 0=Accounting disabled (N), | | | | 1=Tracking (T), and 2=Enabled (Y). | | 1 | ACC_TIME | The amount of ADDITIONAL units to charge | | | | per minute while in the current | | | | conference. | | 2 | ACC_MSGR | The amount to charge in ADDITION for each | | | | message read in the current conference. | | 3 | ACC_MSGW | The amount to charge in ADDITION for each | | | | message entered in the current conference. | **The following are for use with ACCOUNT(), ACCOUNT and RECORDUSAGE only!** | val | constant | description | |----:|:--------------|:------------------------------------------| | 0 | START_BAL | Users starting balance. | | 1 | START_SESSION | Users starting balance for this session | | 2 | DEB_CALL | Debit for this call | | 3 | DEB_TIME | Debit for time on | | 4 | DEB_MSGREAD | Debit for reading message | | 5 | DEB_MSGCAP | Debit for capturing a message | | 6 | DEB_MSGWRITE | Debit for writing a message | | 7 | DEB_MSGECHOED | Debit for echoed message | | 8 | DEB_MSGPRIVATE| Debit for writing private message | | 9 | DEB_DOWNFILE | Debit for downloading a file | | 10 | DEB_DOWNBYTES | Debit for downloading bytes | | 11 | DEB_CHAT | Debit for chat | | 12 | DEB_TPU | Debit for TPU | | 13 | DEB_SPECIAL | Debit special | | 14 | CRED_UPFILE | Credit for uploading a file | | 15 | CRED_UPBYTES | Credit for uploading bytes | | 16 | CRED_SPECIAL | Credit special | | 17 | SEC_DROP | Security level to drop to at 0 credits | This group of constants can be used to access or modify user account information using the ACCOUNT() function, ACCOUNT statement and/or RECORDUSAGE. The ACCOUNT() function returns the current value and the ACCOUNT statement is used to modify a value. Record usage also modifies a value with more information stored in a usage file. **See also:** Account RecordUsage