zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    warshall、
    简单的php单例再次理解
    windows操作系统,在phpstudy集成环境,安装redis扩展,并启用redis服务和客户端
    php单例模式相关知识
    jui结合ajax非表单提交刷新页面
    php截取想要的字符串
    xmlToArray和arrayToXml
    jquery时间戳转换成格式化时间
    腾讯地图调用获取经度纬度代码
    随机生成自定义位数英文字符串
  • 原文地址:https://www.cnblogs.com/sode/p/2244170.html
Copyright © 2011-2022 走看看