When naming objects, use the following recommended format.
PrefixObjectName |
Parameters
- Prefix
-
Specifies characters that indicate the associated object.
The following table lists suggested values for Prefix.
Prefix Object Example chk
CheckBox
chkReadOnlycol
Collection
colFormObjectscbo
ComboBox
cboEnglishcmd
CommandButton
cmdCancelcmg
CommandGroup
cmgChoicescnt
Container
cntMoverListctl
Control
ctlFileListcur
Cursor
curRecordsReturnedcad
CursorAdapter
cadInventory<user-defined>
Custom
user-defineddte
DataEnvironment
dteSalesFormedt
EditBox
edtTextAreafrm
Form
frmFileOpenfrs
FormSet
frsDataEntrygrd
Grid
grdPricesgrc
Column
grcCurrentPricegrh
Header
grhTotalInventoryhpl
HyperLink
hplHomeURLimg
Image
imgIconlbl
Label
lblHelpMessagelin
Line
linVerticallst
ListBox
lstPolicyCodesolb
OLEBoundControl
olbObject1ole
OLE
oleObject1opt
OptionButton
optFrenchopg
OptionGroup
opgTypepag
Page
pagDataUpdatepgf
PageFrame
pgfLeftprj
ProjectHook
prjBuildAllrel
Relation
relCustomerRelationrpt
ReportListener
rptListener1sep
Separator
sepToolSection1shp
Shape
shpCirclespn
Spinner
spnValuestxt
TextBox
txtGetTexttmr
Timer
tmrAlarmtbr
ToolBar
tbrEditReportxad
XMLAdapter
xadRemoteXMLDataxfd
XMLField
xfdPricesxtb
XMLTable
xtbInventory
- ObjectName
- Specifies the name of the object.
Example
The following example illustrates how the letters "cmd" indicate that the cmdCancel object is a CommandButton control:
| В | Copy Code |
|---|---|
cmdCancel | |
js editor
Web development