vb 命名 规则
2011-11-10 10:55
309 查看
引用:http://hi.baidu.com/mangel2002/blog/item/ab36d9e9492b392bb80e2d01.html
一、常用控件的命名:
控件类型 前缀 例子
Form frm frmMain
Menu mnu mnuFileOpen
Label lbl lblHelpMessage
Check box chk chkReadOnly
Combo box cbo cboEnglish
Command button cmd cmdExit
Common dialog dlg dlgFileOpen
Data grid dgd dgdTitles
Date picker dtp dtpPublished
Directory list box dir dirSource
Drive list box drv drvTarget
File list box fil filSource
ADO Data ado adoBiblio
Frame fra fraLanguage
Hierarchical flexgrid flex flexOrders
Image img imgIcon
ImageList ils ilsAllIcons
List box lst lstPolicyCodes
ListView lvw lvwHeadings
Month view mvw mvwPeriod
MS Chart ch chSalesbyRegion
MS Flex grid msg msgClients
MS Tab mst mstFirst
OLE container ole oleWorksheet
Option button opt optGender
Picture box pic picVGA
ProgressBar prg prgLoadFile
RichTextBox rtf rtfReport
StatusBar sta staDateTime
TabStrip tab tabOptions
Text box txt txtLastName
Toolbar tlb tlbActions
TreeView tre treOrganization
二、变量命名
数据类型 前缀 例子
String (字符串类型) str strFName
Integer (短整数类型) int intQuantity
Long (长整数类型) lng lngDistance
Single (单精度浮点数类型) sng sngAverage
Double (双精度浮点数类型) dbl dblTolerance
Boolean (布尔类型) bln blnFound
Byte (字节类型) byt bytRasterData
Date (日期类型) dte dteNow
Currency (货币计算与定点计算类型) cur curRevenue
Object (东西类型) obj objCurrent
Variant (变体类型) vnt vntCheckSum
一、常用控件的命名:
控件类型 前缀 例子
Form frm frmMain
Menu mnu mnuFileOpen
Label lbl lblHelpMessage
Check box chk chkReadOnly
Combo box cbo cboEnglish
Command button cmd cmdExit
Common dialog dlg dlgFileOpen
Data grid dgd dgdTitles
Date picker dtp dtpPublished
Directory list box dir dirSource
Drive list box drv drvTarget
File list box fil filSource
ADO Data ado adoBiblio
Frame fra fraLanguage
Hierarchical flexgrid flex flexOrders
Image img imgIcon
ImageList ils ilsAllIcons
List box lst lstPolicyCodes
ListView lvw lvwHeadings
Month view mvw mvwPeriod
MS Chart ch chSalesbyRegion
MS Flex grid msg msgClients
MS Tab mst mstFirst
OLE container ole oleWorksheet
Option button opt optGender
Picture box pic picVGA
ProgressBar prg prgLoadFile
RichTextBox rtf rtfReport
StatusBar sta staDateTime
TabStrip tab tabOptions
Text box txt txtLastName
Toolbar tlb tlbActions
TreeView tre treOrganization
二、变量命名
数据类型 前缀 例子
String (字符串类型) str strFName
Integer (短整数类型) int intQuantity
Long (长整数类型) lng lngDistance
Single (单精度浮点数类型) sng sngAverage
Double (双精度浮点数类型) dbl dblTolerance
Boolean (布尔类型) bln blnFound
Byte (字节类型) byt bytRasterData
Date (日期类型) dte dteNow
Currency (货币计算与定点计算类型) cur curRevenue
Object (东西类型) obj objCurrent
Variant (变体类型) vnt vntCheckSum
相关文章推荐
- VB常用控件和变量的命名规则
- VB命名规则及代码规范
- VB.NET类型单位命名规则介绍
- C语言命名规则
- Java命名规则详细总结
- DoTween官方手册中文版(一)命名规则
- CISCO IOS命名规则(别人写的,很完整)
- CSS样式命名规则及参考命名标准
- .NET 程序的命名规则
- C#命名规则
- DIV+CSS的命名规则
- Atmega系列单片机命名规则
- java的一些命名规则
- 谈DIV+CSS样式表命名的规则方法
- Cisco IOS 命名规则
- C#控件命名规则
- refactoring Patterns(七):场合与命名规则
- java开发中遇到的crud命名规则
- C#命名规则和开发习惯
- python命名规则范例