• vb 命名 规则


    引用: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

  • 相关阅读:
    【学习】Filter
    黑马程序员JAVA基础String 类(上)
    黑马程序员JAVA基础基本数据类型对象包装类
    [xcode]安装xcode出现一个错误:The Installation Failed.
    [SW]SolidWorks文件属性(Properties)
    AutoCAD:使用VS2012调试AutoCAD 2010中.Net DLL类库
    AutoCAD:ObjectARX所有版本下载地址
    [IOS]如何让手上的 iPhone 或 iPad 进入 DFU 或 Recovery 模式
    [iOS]Win8下iTunes无法连接iPhone版本的解决方法
    [SW]SolidWorks API SDK二次开发学习心得01开发方式
  • 原文地址:https://www.cnblogs.com/sode/p/2244170.html
Copyright © 2020-2023  润新知