Naming conventions
When you name FirstClass objects such as forms and fields, and code elements such as variables, constants, and subroutines, these names must:
• begin with a letter
• contain only letters, numbers, and the underscore character (_)
• be no longer than 255 characters
• differ from the names of BASIC operators and logical operators such as OR, AND, MOD, and NOT.
Examples:
• Form
• frm
• FileOpen
• frmFileOpen
• Checkbox
• chk
• ReadOnly
• chkReadOnly
Data types in code
Each variable in your code has a data type that determines what kind of data that variable can store. For example, string variables store text strings, and Integer variables store whole numbers.
Before you can use a variable in your code, you must declare it and its data type. This ensures that a variable only contains a value of the expected data type (for efficiency, FCAS does not support variables that can contain ambiguous data types).
|