A program module (common module, object module, object manager module, form module, command module, and so on) can have the following sections ordered as listed below:
Some sections only appear in modules of specific types. For example, event handlers of form items can only exist in form modules, while the variable description and initialization sections cannot be defined in nonglobal common modules, object manager modules, record set modules, constant value modules, or the session module.
Dividing the module code into sections makes the code easier to read and modify for different authors (developers), both during group development and during application customization within specific deployment projects.
#Region Public
// Enter code here.
#EndRegion
#Region Internal
// Enter code here.
#Region Private
// Enter code here.
#EndRegion
#EndRegion
#Region Public
// Enter code here.
#EndRegion
#Region Internal
// Enter code here.
#EndRegion
#Region Private
// Enter code here.
#EndRegion