Naming Convention
It is recommended to have a good notation on naming the variables and component. it would be easy for you (and/or the team) to debug or revise the program. Below is the naming convention that you may use (you may use some also on other programming language!)
Prefix | Component | Prefix | Component | |
ado | ADO Data | key | Key status | |
ani | Animation | lbl | Label | |
cal | Calendar | lin | Line | |
cbo | Combo box | lst | List box | |
ch | Chart | lsw | ListView | |
ch3 | 3d check box | lwchk | Lightweight check box | |
chk | Check box | lwcbo | Lightweight combo box | |
clp | Picture clip | lwcmd | Lightweight command button | |
cm3 | 3d command button | lwfra | Lightweight frame | |
cmd | Command button | lwhsb | Lightweight horizontal scrollbar | |
com | Comm | lwlst | Lightweight list box | |
con | Container (DAO) | lwopt | Lightweight option button | |
ctr | Control (specific type unknown) | lwtxt | Lightweight text box | |
dat | Data | lwvsb | Lightweight vertical scrollbar | |
db | Database (DAO) | mci | Multimedia MCI | |
dbc | DataCombo | med | Masked Edit | |
dbd | DataGrid | mnu | Menu | |
dbe | Database engine (DAO) | mpm | MAPIMessage | |
dbgrd | Data Bound Grid | mps | MAPISession | |
dbl | DataList | mst | Tabbed Dialog | |
dir | Directory list box | mvw | Month View | |
dlg | Common dialog box | ole | OLE | |
doc | Document (DAO) | op3 | 3d option button | |
drv | Drive list box | opt | Option button | |
drp | DataRepeater | out | Outline | |
dtp | DTPicker | pic | Picture box | |
fil | File list box | pnl | 3d panel | |
fld | Field (DAO) | prg | ProgressBar | |
flex | Hierarchical Flex Grid | prm | Parameter (DAO) | |
fr3 | 3d frame | qry | QueryDef (DAO) | |
fra | Frame | rd | RemoteData | |
frm | Form | rec | RecordSet (DAO) | |
fsb | FlatScrollBar | rel | Relation (DAO) | |
gau | Gauge | rtf | RichTextBox | |
gpb | Group push button | shp | Shape | |
gra | Graph | sld | Slider | |
grd | Grid | spn | Spin button | |
grp | Group (DAO) | sta | StatusBar | |
hdr | Header | ssys | SysInfo | |
hsb | HscrollBar | tbd | TableDef (DAO) | |
ils | ImageList | tbs | TabStrip | |
img | Image | tlb | Toolbar | |
imgcbo | ImageCombo | tmr | Timer | |
ix | Index (DAO) | tre | TreeView | |
Prefix | Component | Prefix | Data Type | |
txt | Text box | bln | Boolean | |
usr | User (DAO) | byt | Byte | |
vsb | VScrollBar | cur | Currency | |
wsp | Workspace (DAO) | dbl | Double | |
Suffix | Data Type | dec | Decimal | |
% | 2-byte signed integer | dtm | Date (Time) | |
& | 4-byte signed integer | sng | Float / Single | |
@ | 8-byte signed integer | h | Handle | |
! | 4-byte SinglePrecision FloatingPoint | i | Index | |
# | 8-byte DoublePrecision FloatingPoint | lng | Long | |
$ | String | int | Integer | |
Prefix | Class Name | Sample | obj | Object |
lon | Loan | lonBoat | str | String |
plnt | Planet | plntEarth | u | Unsigned quantity |
erc | EmployeeRecord | ercSales | ulng | Unsigned long |
dspec | DailySpecial | dspecTuesd | vnt | Variant |
wrd | Word |