Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Variable Naming Conventions
◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Variable Naming Conventions
■ Variable names cannot be reserved words, but embedded reserved words are
allowed with user-defined variables. Reserved words include all Visual
Basic commands, statements, functions, operators, and other names
recognized by the interpreter. See: ◄Visual Basic Reserved Words►
■ Variable names must be distinct from SUB and FUNCTION procedure names and
symbolic constant (CONST) names.
■ Follow these naming conventions when creating arrays and variables:
• Use 40 alphanumeric characters or fewer (upper- or lowercase)
• Use type-declaration characters with variable and function names (%, &,
!, #, @, and $)
• If $ is used for a variable or function name, it must be placed at the
end of name (for example, MyVariable$)
• Begin array or variable names with an alphabetic character; only DEF FN
functions can begin with "fn"
• Do not use a period (.) in names of elements in a user-defined type
■ Follow these naming conventions when creating ISAM-specific arrays and
variables (e.g. tables, columns, indexes, and so on):
• Use 30 alphanumeric characters or fewer (upper- or lowercase)
• Use alphanumeric characters only (no type-declaration characters, etc.)
• If $ is used for a variable or function name, it must be placed at the
end of name (for example, MyVariable$)
• Begin array or variable names with an alphabetic character; only DEF FN
functions can begin with "fn"
See: ◄Variables Summary►