Appendix C - Limits #

This appendix lists various limits which Max2 imposes. The limits are listed by the name of the symbol used to represent the limit in the program. The numerical value of the limit is given, and to aid programmers, the file in which the limit is defined is also listed.

MAX_ACCOUNT_NUMBER_LEN 4 TRANFILE.BAS
The maximum length of an account number, in characters.
tOperator::sfName * 20 GLOBAL.BAS
The maximum length of the name of an operator.
MAX_OPERATORS 21 GLOBAL.BAS
The maximum number of operators who can be configured to use Max2.
MAX_CRDB_NOTE_LEN 30 TRANFILE.BAS
The maximum length of the text attached to a credit or debit transaction.
MAX_GLIDER_NUMBER_LEN 4 TRANFILE.BAS
The maximum length of a glider identification, used in a glider flight transaction.
MAX_POWER_REGISTRATION_LEN 2 TRANFILE.BAS
The maximum length of the abbreviated registration used to identify a powered aircraft, either the tug in a glider flight transaction or the subject aircraft of a power flight transaction.
MAX_MEMBERSHIP_TYPE_NAME_LEN 30 TRANFILE.BAS
The maximum length of the name of a membership type.
MAX_COURSE_TYPE_NAME_LEN 30 TRANFILE.BAS
The maximum length of the name of a course type.
MAX_IMPLIED_PROPERTIES 3 TRANFILE.BAS
The maximum number of account properties which can be implied by a membership or course type.
MAX_TRIAL_LESSON_TYPE_NAME_LEN 30 TRANFILE.BAS
The maximum length of the name of a trial lesson type.
MAX_BANK_HOLIDAYS_PER_YEAR 12 TRANFILE.BAS
The maximum number of entries in the bank-holiday date list.
tName::sfSurname 20 TRANFILE.BAS
The maximum length of the surname of the holder of a proper account.
tName::sfFirstName 20 TRANFILE.BAS
The maximum length of the first name of the holder of a proper account.
tName::sfTitle 8 TRANFILE.BAS
The maximum length of the title (e.g, "Mr", "Miss", "Dr", "The Hon.") of the holder of a proper account.
tName::sfInitials 6 TRANFILE.BAS
The maximum length of the initials of the holder of a proper account.
tName::sfNickname 10 TRANFILE.BAS
The maximum length of the nickname of the holder of a proper account.
tName::sfHonours 8 TRANFILE.BAS
The maximum length of the honours (e.g, "O.B.E.") for the name of the holder of a proper account.
tAddress::sfLine1 30 TRANFILE.BAS
The maximum length of the first line of the address of a holder of a proper account.
tAddress::sfLine2 30 TRANFILE.BAS
The maximum length of the second line of the address of a holder of a proper account.
tAddress::sfPostTown 30 TRANFILE.BAS
The maximum length of the post down part of the address of the holder of a proper account.
tAddress::sfCounty 15 TRANFILE.BAS
The maximum length of the name of county in the address of the holder of a proper account.
tAddress::sfPostCode 10 TRANFILE.BAS
The maximum length of the post code part of the address of the holder of a proper account.
tAddress::sfCountry 15 TRANFILE.BAS
The maximum length of the name of the country in the address of a holder of a proper account.
tTelNumber::sfType 10 TRANFILE.BAS
The maximum length of the name of the type of a telecomm number (e.g, "Work", "Home", "Home Fax", "Mobile") in a proper account.
MAX_TEL_NUMBER_LEN 20 TRANFILE.BAS
The maximum length of the telecomm numbers in a proper account, including the next-of-kin telephone number.
MAX_TEL_NUMBERS 4 TRANFILE.BAS
The maximum number of telecomm numbers which can be stored for an individual proper account.
MAX_PROPERTIES 10 TRANFILE.BAS
The maximum number of properties which can be attached to an individual account.
MAX_ACCOUNT_NOTES_LEN 120 TRANFILE.BAS
The maximum length of the notes text attached to a proper or trial lesson account record.
MAX_NEXT_OF_KIN_NAME_LEN 20 TRANFILE.BAS
The maximum length of the name of the next-of-kin stored in the account record.
MAX_FIELD_NAME_LEN 30 MAX2DLL.BAS/.H
The maximum length of a transaction field name.
MAX_RULE_VALUE_LENGTH 30 TRANFILE.BAS
The maximum length of a value appearing in a rule condition or consequence.
MAX_COMPUTED_FIELDS_PER_RULE_SET 50 RULESET.BAS
The maximum number of different computed fields in a rule set.
MAX_RULES_PER_RULE_SET 200 RULESET.BAS
The maximum number of rules in a rule set.
MAX_RULE_TITLE_LEN 30 TRANFILE.BAS
The maximum length of the name of a rule.
MAX_CLUB_ADDRESS_LEN 500 STATEMNT.BAS
The maximum length of the club's address, appearing on account statements
MAX_STATEMENT_MESSAGE_LEN 500 STATEMNT.BAS
The maximum length of the message appearing on account statements.
MAX_SYMBOL_NAME_LEN 30 TRANFILE.BAS
The maximum length of a symbol. Headings, Cash Headings and Properties are symbols.
MAX_SYMBOL_SET_SIZE 50 SYMBOL.BAS
The maximum number of different symbols in each symbol set. The Headings form one symbol set, Cash Headings another and Properties the third.
MAX_TRANSACTION_FIELDS 50 TRANSACT.C
The maximum number of fields in a transaction, including the intrinsic fields, fields computed by the intrinsic rules and fields computed by the charging rules.
---- 20,000 - 30,000 STATE.C

This module imposes an upper limit on the total number of objects in the state file. Examples of objects include:

  • Proper accounts
  • Trial lesson accounts
  • Rule sets and rules
  • Symbols (Headings, Cash Headings and Properties)
  • Blocks containing lists of transactions for an account when there are more than 12 (MAX_TRANSACTIONS_PER_LIST_BLOCK, in GLOBAL.BAS) transactions for an account in one month.
  • Membership, course and trial lesson types.
  • The list of bank holidays for the current year.