Contents of Section |
Use the following naming conventions for naming database objects,
functions, programs, forms, windows, program variables, screen
variables and other objects in the Home Depot Stores system. Unless
specified otherwise, use the abbreviations found in the lists
of standard abbreviations and standard class words available in
the Brownstone Data Dictionary or from the Data Management team.
Directories
Functions
Module Files
Global Files
Program Files
Rapid System Development (RDS) Files
Forms
FormsXpress
Windows
Global Variables
Module Variables
Local Variables
Screen Variables
Other Software Objects
|
Directories |
Directories correspond to life cycle phases (LCPs) for software
development.
Abbreviations for these directories include
Directory | Life Cycle |
ad | Application Development |
pr | Production (Development System only) |
de | Deployment |
Several directories exist below the LCP directories.
Each of these lower-level directories contain files according to the
following system:
Directory | Contents |
bin | Executable files such as *.4ge's, C programs, and UNIX scripts |
lib | Compiled library functions |
src | All source code for the system |
dbs | Data files; for example, files may contain database
"unload" data or ASCII data used for table updates |
Use the underscore character ( _ ) to separate all abbreviations
within names.
|
Functions |
Use meaningful prefixes to reflect the primary purpose of
a function.
The following table provides suggestions for creating functions.
Use functions names that are meaningful; use standard abbreviations
whenever possible.
Suggested Prefix | Purpose |
cmp | Performs computations |
db | Performs one or more basic database operation |
del | Deletes information from the database |
dsp | Displays information to the user |
err | Performs error handling |
ins | Inserts or adds information to the database |
inp | Receives input from the user |
sel | Receives or selects information from the database |
upd | Updates database information |
val | Validates information |
|
Module Files |
The syntax for the names of module files is
xxp###m##.4gl
The following table explains the parts of the name syntax:
Part | Meaning |
xx | Two-character subsystem code |
p | A constant indicating a program |
### | Program's sequential number |
dsp | Displays information to the user |
m | A constant indicating a module |
## | Module's sequential number |
End all module filenames (INFORMIX-4GL source code files)
with the suffix .4gl.
Module file names, excluding the ".4gl" suffix,
should not exceed 18 characters.
|
Global Files |
The syntax for the names of global files is
xxp###_gbl.4gl
The following table explains the parts of the name syntax:
Part | Meaning |
xx | Two-character subsystem code |
p | A constant indicating a program |
### | Program's sequential number |
gbl | A constant indicating a global file |
End all module filenames (INFORMIX-4GL source code files)
with the suffix .4gl.
|
Program Files |
The syntax for the names of module files is
xxp###.4ge.
The following table explains the parts of the name syntax:
Part | Meaning |
xx | Two-character subsystem code |
p | A constant indicating a program |
### | Program's sequential number |
4ge | A constant indicating a program file |
Program file names, excluding the suffix, should not exceed
eight characters.
|
Rapid System Development |
Rapid System Development (RDS) program file names end with the suffix .4gi.
|
Forms |
Definition: A form is any screen that occupies the entire display area of a terminal device. Descriptions and layouts of forms are found in .per files.
The syntax for the names of form files is
xxs###xAAA.per.
The following table explains the parts of the name syntax:
Part | Meaning |
xx | Two-character subsystem code |
s | A constant indicating a form |
### | Program's sequential number |
x | Sequential characters: a, b, c, ..., z |
AAA | Language code; for example, ENG (English) |
per | A constant indicating a form file |
The name of a form in an INFORMIX-4GL program should be identical to the file name of the .per file where the form is described.
Form names, excluding the ".per" suffix, should not exceed 18 characters.
|
FormsXpress Files |
The syntax for the names of FormsXpress files is
xxrnnnzNLS.fgl
The following table explains the parts of the name syntax:
Part | Meaning |
xx | Two-character subsystem code |
p | FormsXpress overlay
d
m
a |
Document file
Map data
Format file (used with NLS extension)
|
|
nnn | Program number |
z | An alphabetic character |
NLS | Language in which the report is written |
fgl |
- The file extension for a FormsXpress source object is fgl.
- The file extension for a FormsXpress ship object is xgl
|
|
Windows |
Definition: A window is a portion of any screen displayed over an existing form or on top of other windows. Find descriptions and layouts for windows in .per files
The reference name of a window in an INFORMIX-4GL program
should be the same as the file name of the .per file where the
window is described.
Most windows will be handled by the Architecture and the
names will be populated by TIGER (Template Interactive Generation Environment).
|
Global Variables |
The following table explains the parts of the name syntax for global variables:
Prefix | Meaning |
g_[variable name] | Global program variable name defined in a globals .4gl file |
ga_* | Global program array name defined in a globals .4gl file |
gr_*.* | Global program record name defined in a globals .4gl file
Note:Arrays of records use the form gr_*.*[array boundary]. |
|
Module Variables |
The following table explains the parts of the name syntax for module variables:
Prefix | Meaning |
m_* | Modular program variable name defined in a globals .4gl file |
ma_* | Module array name defined in a globals .4gl file |
mr_*.* | Module record name defined in a globals .4gl file
Note:Arrays of records use the form gr_*.*[array boundary]. |
|
Local Variables |
The following table explains the parts of the name syntax for local variables:
Prefix | Meaning |
p_* | Local program variable name defined in a function |
pa_* | Local program array name defined in a function |
pr_*.* | Local module program variable name defined in a function
|
|
Screen Variables |
The following table explains the parts of the name syntax for local variables:
Prefix | Meaning |
sa_* | Screen array name defined in a .per file |
sr_*.* | Screen record name defined in a .per file
|
|
Other Software Objects |
The following table explains the parts of the name syntax for other software objects:
Prefix | Meaning |
c_* | Informix-4GL cursor names |
st_*.* | Statement name used in Informix-4GL PREPARE and EXECUTE statements
|
w_* | A window |
|