Small company logo:
   History
 
Advertising banner:
 
 LAS12
Home • Help • A0 • Customization Tools • FCAS • LAS12
 
Code modules are the other fundamental type of module in FCAS. They contain procedures that are global (that is, it is called from multiple forms, multiple fields on a form, or anywhere in the project), and can be accessed by any of the objects in the entire project. You can call the desired procedure from anywhere in your project with a single line of code.
This simplifies and streamlines projects by eliminating copies of identical code. When a procedure is modified, its changes are reflected everywhere the procedure is called, eliminating the need to remember to update all occurrences of duplicate code.
The code in code modules can take the form of:
•       subroutines
        Code that performs particular steps. Instead of repeating the code for a step wherever it is needed, you can call the subroutine.
•       variables
        A placeholder in your code for particular values, such as values that users have entered. You must declare a variable before you can use it.
•       constants
        Similar to variables, except the value of a constant can't be changed.
•       user-defined data types
        Combinations of related variables into single data structures.
•       declarations.
        A variable, constant, or user-defined type used when programming applications.