VB Programming Statute
JUGNLESONG
1. Object naming status
Object type
Object name
Object prefix
example
FORM
Form
FRM
Frmmain
MDI Son Form
Subform
MDI
Mdinote
Picture Box
Picture control
Pic
PicView
Label
Tag control
LBL
LBlMessage
TEXT BOX
Text control
TXT
TXTPASSWORD
Frame
Frame control
FRA
Fraoption
Command button
Command control
cmd
cmdclose
Check Button
Check box
chk
ChktaxinClude
Option Button
Single box
OPT
Optfemaale
Combo box
Composite box
CBO
CBOGROUP
List box
List box
LST
LStitems
Horiz Sroll Bar
Horizontal scroll bar
HSB
HSB
Vertical Scroll Bar
Vertical scroll bar
VSB
vsbvolume
Timer
Time control
TMR
TmraLarm
Drive List box
Drive control
DRV
Drvtarget
Directory Box Directory Control
DIR
DirPath
File List Box
File list control
Fil
Filsource
Shape
SHAPE control
SHP
SHPCIRCLE
Line
Line control
lin
linVertical
Image
Image control
IMG
IMGICON
Data Control
Data control
DAT
Datbiblio
Ole Control
OLE control
Ole
Olexcel
Menu
menu
mnu
Mnufile
2. ActiveX control naming status
Object type
Object prefix
example
ADODC
ADO
AdobiBlio
CommonDialog
DLG
Dlgfileopen
MSCOMM
COM
Comfax
Datacombo
DBC
Dbcauthor
DataGrid
DGD
DGDTISLES
Datalist
DBL
DBLPublisher
DataRepeater
DRP
DrPLocation
DTPicker
DTP
DTPPBLISHED
MshflexGrid
Flex
Flexorders
Mapimesses
MPM
MPMSentMessage
Mapisession
MPS
Mpssession
MMControl
MCI
McIvideo
MONTHVIEW
MVW
Mvwperiod
Mschart
CH
ChsalesbyRegion
MSFlexGrid
MSG
MsgClients
Sstab
MST
MSTFIRST
Slider
SLD
Sldscale
STATUSBAR
STA
Stadatetime
Sysinfo
SYS
Sysmonitor
Tabstrip
Tab
TabOptions
Toolbar
TLB
TLBACTIONS
TreeView
TRE
Treorganization
Updown
UPD
Upddirection
3. DAO object naming status
Object type
Object prefix
example
DBENGINE
Dbe
DBEJET
Workspace
WSP
Wspmain
Database
DB
DBBIBLIO
Tabledef
TBD
TBDCUSTOMERS
QueryDef
Qry
QryAllTitle
Recordset
REC
Rectitles
Field
FLD
FldName
4. ADO object naming status
Object type
Object prefix
example
ConnectionCNN
CNNoracle
Command
cmd
cmdgettitle
Recordset
RST
Rsttitles
Parameter
PRM
Prmisbn
Field
FLD
Fldcity
5. Basic variable naming stations
Variable type
Prefix
example
Bolean Brown
BLN
BLNFound
Byte byte type
BYT
Bytarray
Collection set object
COL
ColtiTle
Currency currency
CUR
Curtax
Date date type
DTM
DTMBEGIN
Double double precision floating point
DBL
DBLRATIO
Error error
Err
Erlocal
Integer integer type
int
IntQuantity
Long long integer type
LNG
LNGTOTAL
Object object
Obj
Objcurrent
SINGLE 単 Precision floating point
SNG
Sngaverage
String string
Str
Strusename
User definition type
UDT
Udtemployee
Variant variable body
VNT
VntBookmark
6. Variable applicable range prefix naming status
Applicable fan
プ プ フィ ク ク
example
Global variable
G
Gstrusername
Modular variable
M
MBLndone
Local variable
Na shi
DBLprofit
7. Function prefix naming nam
Applicable fan
プ プ フィ ク ク
example
Sub
Inside the form
s
Sgrid_set
Inside the module
MS
MSDB_Open
FUNCTION
Inside the form
fly
Fchange_text
Inside the module
MF
MFKANRI_CMB_SET
8. Universal variable name
変 number content
Digital name
Attributes
return value
RET
INTEGER or BOOLEAN
Cyclic variable
i
Integer
Number of pieces
CNT
Integer
SQL command
MSTRSQL
String (BasCommon definition)