首页 > 代码库 > Naming Conventions----Best pratice

Naming Conventions----Best pratice

Variables: <scope><array><data type>Descriptive_Name

Constants: <scope><data type>Descriptive_Name

User-defined types: Type Descriptive_Name

              <data type> Descriptive_Name

            End Type

Enumeration types: Enum <project profix>General Descr

              <project profix> GeneralDescrSpecificName1
              <project profix> GeneralDescrSpecificName2

           End Enum

=============================================================

The Scope Specifier (<scope>)
g—Public
m—Module-level
(nothing)—Procedure-level

The Array Specifier (<array>)
a—Array
(nothing)—Not an array

The Data Type Specifier (<data type>)

ex: i for integar, d for double...

Enumeration Types

ex: xlPaperA4 represents A4 paper