◄Contents► ◄Index► ◄Back► ────────────────────────────────────────────────────────────────────────────── Module ■ Visual Basic uses two types of modules, form modules and code modules: Module Type Description ═══════════════════ ═══════════════════════════════════════════════════ Form module (.FRM) Binary file that includes: • Form module header: Identifies the file as a valid form module; specifies the location in the file of form data and event handlers (event procedures). • Form data: Initial values of all form properties, control properties, and control names. Form controls and properties can be accessed outside the module where they are defined only if $FORM is used. See: ◄$FORM Metacommand► • Basic source code: SUBs and event handlers. Form- module SUBs and event handlers are private in scope to the module in which they are located. Non-form or code Binary or text file that contains strictly Basic module (.BAS) source code: executable statements and declarations. ───────────────────────────────────────────────────────────────────────── See: ◄Building an Application► ◄Creating a New Project► ◄Main Module Definition►