ðHgeocities.com/Baja/Dunes/7592/vbcc7.htmgeocities.com/Baja/Dunes/7592/vbcc7.htm.delayedx MÔJÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿȰoÙ´$OKtext/html° h´$ÿÿÿÿb‰.HFri, 10 Jul 1998 01:16:19 GMT„Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)en, * MÔJ´$

Visual Basic Naming Conventions

Page 7

Previous Page | Home Page | VB Page
Type Prefixes
This section details the type prefixes to use in you applications. Remember that, in order to be effective, these should be used consistently throughout your code.

Variable Prefixes - Table 1
Prefix Data Type
b Boolean
byt Byte
col Collection
cur Currency
dte Date
d Double
hf File handle (Long)
h(lowercase) Handle to something (long)
n Integer
l Long
o Object
c Object instantiated from a class
f Single (floating Point)
s String
v Variant
hwnd Window handle (Long)

Modifiers and Special Type Prefixes - Table 2
Prefix Data Type
a Array (of another type)
C Class (not class instance)
udt User defined type
e Enumerated type or instance
p Pointer (used in API calls)
pcb Pointer to a callback function (used with AddressOf)

Data Objects: DAO Prefixes - Table 3
Prefix Visual Basic Data Type
bk SelBookmarks
ct Container
db Database
dc Document
ds Dynaset
er Errors
fd Field
gp Group
ix Index
pa Parameter
qd QueryDef
rs Recordset
rl Relation
ss Snapshot
tb Table
td TableDef
us User
wk Workspace

Data Objects: RDO Prefixes - Table 4
Prefix Visual Basic Data Type
rdoEng rdoEngine
rdoEnv rdoEnvironment
rdoConn rdoConnection
rdoTbl rdoTable
rdoCol rdoColumn
rdoPrepS rdoPreparedStatement
rdoParam rdoParameter
rdoRS rdoResultset
rdoErr rdoError


Control Prefixes - Table 5
Prefix Control Type Description
pnl 3d panel
ani Animation button
chk Checkbox
cbo Combobox/Dropdown Listbox
cmd Command button
crp Crystal Reports Control
dlg Common dialog
com Serial communications
*cur Currency Control
dat Data control
*dte Date Control
dir Directory listbox
drv Drive listbox
fil File listbox
frm Form
fra Frame
gau Gauge
gra Graph
grd Grid
gbp Group pushbutton
hsb Horizontal scroll bar
img Image
iml ImageList
key Keyboard key status
lbl Label
lin Line
lst listbox
lvw ListView
mpm MAPI message
mps MAPI session
msk Mask TextBox
mci MCI
mnu Menu
ole Ole Client
opt Option button
out Outline Control
bed Pen BEdit
hed Pen HEdit
ink Pen ink
pic Picture
clp Picture clip
pbr ProgressBar
rdc Remote date control
rtf RichTextBox
shp Shape
sld Slider
spn Spin control
tab SS Tab Control
txt Text box
tmr Timer
tbr Toolbar
tvw TreeView
vsb Vertical scroll bar

*dte and cur are also variable prefixes but dte and cur would commonly begin with two letter signifying the third party vendor, for example the cur control could be named fpcurMonthlyTotal.
These are also used for the Currency and Date variable types, as well as custom or third party currency and date controls.



Data-Bound Control Prefixes - Table 6
Prefix Control Type Description
dbcbo Databound ComboBox/Dropdown ListBox
dblst Databound listbox
dbgrd Databound grid


-- END OF DOCUMENT --