Delphi programmer code preparation standard guide

zhaozj2021-02-17  52

First, preamble

Second, universal source code format rules

2.1 格

2.2 page space

2.3 Begin ... END pairing

Third, Object Pascal

3.1 Brand

3.2 Reserved words and keywords

3.3 Processes and Functions (routines)

3.3.1 Name / Format

3.3.2 Formal parameters

3.3.2.1 Format

3.3.2.2 Named

3.3.2.3 Sort by parameter

3.3.2.4 Constant parameters

3.3.2.5 Conflicts of the name

3.4 variables

3.4.1 Names and format of variables

3.4.2 Local variables

3.4.3 Use of global variables

3.5 Type

3.5.1 Understanding

3.5.1.1 Floating point pointer type

3.5.1.2 Enumeration Type

3.5.1.3 Variables and OLE variable types

3.5.2 Structure Type

3.5.2.1 Array Type

3.5.2.2 Recording Type

3.6 statement

3.6.1 IF statement

3.6.2 CASE statement

3.6.2.1 General Topics

3.6.2.2 Format

3.6.3 WHILE statement

3.6.4 for statement

3.6.5 REPEAT statement

3.6.6 With statement

3.6.6.1 General Topics

3.6.6.2 format

3.7 Structure abnormal processing

3.7.1 General Topics

3.7.2 Try ... Finally used

3.7.3 Try ... Except

3.7.4 Try ... Except ... Else

3.8 type type

3.8.1 Names and format

3.8.2 domain

3.8.2.1 Named / Format

3.8.2.2 Visualization

3.8.3 Method

3.8.3.1 Named / Format

3.8.3.2 Use Static Method

3.8.3.3 Using Virtual / Dynamic Method

3.8.3.4 Using Abstract Methods

3.8.3.5 Property Access Method

3.8.4 Property

3.8.4.1 Named / Format

3.8.4.2 Methods Using Access

Four, documents

4.1 Engineering Document

4.1.1 Name

4.2 Form file

4.2.1 Name

4.3 Data Template File

4.3.1 Name

4.4 remote data template file

4.4.1 Name

4.5 Unit file

4.5.1 Universal Unit Structure

4.5.1.1 Name of Unit

4.5.1.2 Uses clause

4.5.1.3 Interface section

4.5.1.4 Part IMPLEMENTATION section

4.5.1.5 Initialization section

4.5.1.6 Finalization section

4.5.2 Form Unit

4.5.2.1 Name

4.5.3 Data Template Unit

4.5.3.1 Name

4.5.4 General destination unit

4.5.4.1 Named

4.5.5 Component Unit

4.5.5.1 Name

4.6 file header

V. Forms and data templates

5.1 Form

5.1.1 Form Type Name Standard

5.1.2 Form instance naming standard

5.1.3 Automatically create a form

5.1.4 Mode Form Instantiation Function

5.2 Data Template

5.2.1 Data Template Naming Standard

5.2.2 Data Template Instance Name Standard

Sixth, package

6.1 Comparison of running packages and design packages

6.2 file naming standard

Seven, component

7.1 User Customizing Components

7.2 component unit

7.3 Using registration unit

7.4 Component instance naming conventions

7.5 Prefix of the component

7.6 Standard Page

7.7 Additional Page

7.8 Win32 Page

7.9 SYSTEM Page

7.10 Internet Page

7.11 Data Access Page

7.12 Data Controls Page

7.13 Decision Cube Page

7.14 QReport Page

7.15 Dialogs Page

7.16 Win3.1 Page

7.17 Samples Page

7.18 ActiveX Page

7.19 Midas Page

转载请注明原文地址:https://www.9cbs.com/read-30447.html

New Post(0)