Type Prefixes

In this section, you'll find tables that include prefixes for various data types and control types.

Table A-1 Variables Prefixes

Prefix Data Type
byt Byte
b Boolean
cur Currency
d Double
dte Date
f Single
hf File handle (Long)
hwnd Window handle (Long)
h(... lowercase) Handle to something (Long)
l Long
n Integer
o Object
s String
v Variant

Table A-2 Modifiers and Special Types Prefixes

Prefix Data Type
a Array <of another type>
C Class or class instance
t User-defined type or instance
e Enumerated type or instance
p Pointer (used with API calls)
pcb Pointer to a callback function (used with AddressOf)

Table A-3 Data Objects: DAO Prefixes

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
pr Property
qd QueryDef
rs Recordset
rl Relation
ss Snapshot
tb Table
td TableDef
us User
wk Workspace

Table A-4 Data Objects: RDO Prefixes

Prefix Visual Basic Data Type
rdoEng rdoEngine
rdoEnv rdoEnvironment
rdoConn rdoConnection
rdoTbl rdoTable
rdoCol rdoColumn
rdoPrepS rdoPreparedStatement
rdoParam rdoParameter
rdoRS rdoResultset
rdoErr rdoError

Table A-5 Controls Prefixes

PrefixControl Type Description
aniAnimation button
bedPen BEdit
cboCombobox/Dropdown Listbox
chkCheckbox
clpPicture Clip
cmdCommand Button
comCommunications
datData Control
dirDirectory Listbox
dlgCommon dialog
drvDrive Listbox
filFile Listbox
fraFrame
frmForm
gauGauge
gpbGroup Pushbutton
graGraph
grdGrid
hedPen HEdit
hsbHorizontal scroll bar
imgImage
inkPen Ink
keyKeyboard key status
labLabel
linLine
lstListbox
mciMCI
mnuMenu
mpmMAPI Message
mpsMAPI Session
oleOLE Client
optOption Button
PrefixControl Type Description
outOutline Control
picPicture
pnl3D Panel
rdcRemote Data Control
shpShape
spnSpin Control
tabSS Tab Control
tmrTimer
txtTextbox
vsbVertical scroll bar
imlImageList
lvwListView
pbrProgressBar
rtfRichTextBox
sldSlider
sbrStatusBar
tabTabstrip
tbrToolbar
tvwTreeView

Table A-6 Data-Bound Controls Prefixes

Prefix Control Type Description
dbcboDatabound Combobox/Dropdown Listbox
dblstDatabound Listbox
dbgrdDatabound Grid


Ltd Mandelbrot Set International Advanced Microsoft Visual Basics 6. 0
Advanced Microsoft Visual Basic (Mps)
ISBN: 1572318937
EAN: 2147483647
Year: 1997
Pages: 168

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net