VB 的信息: 对象匈牙利表示法命名约定

VB 的信息: 对象匈牙利表示法命名约定,第1张

概述这是作为引用的匈牙利表示法的一致使用提供的 Visual Basic 控件和对象前缀列表。此列表将帮助标准化该结构编码样式和应用程序的逻辑。  Object Prefix Example--------------------------------------------------------------- 这是作为引用的匈牙利表示法的一致使用提供的 Visual Basic 控件和对象前缀列表。此列表将帮助标准化该结构编码样式和应用程序的逻辑。
Object                             Prefix                Example--------------------------------------------------------------------------Form                               frm                   frmfileOpenCheck Box                          chk                   ReadonlyCombo Box                          cbo                   cboEnglishData-bound combo Box               dbc                   dbcEnglishCommand button                     cmd                   cmdCancelData                               dat                   datBiblioDirectory List Box                 dir                   dirsourceDrive List Box                     drv                   drvTargetfile List Box                      fil                   filSourceFrame                              fra                   fraLanguageGrID                               Grd                   GrdPricesData-bound grID                    dbg                   dbgPricesHorizontal scroll bar              hsb                   hsbVolumeImage                              img                   imgIconLabel                              lbl                   lblHelpMessageline                               lin                   linVerticalList Box                            lst                  lstPolicyCodesData-bound List Box                dbl                   dblPolicyCodeMenu                               mnu                   mnufileOpenolE container                      ole                   oleObject1Option button                      opt                   optfrenchPicture Box                        pic                   picdiskSpaceShape                              shp                   shpCircleText Box                           txt                   txtGetTextTimer                              tmr                   tmrAlarmObject                             Prefix                Example------------------------------------------------------------------------Vertical scroll bar                vsb                   vsbRateAnimation button                   ani                   aniMailBoxbed      Pen                       bedit                 bedFirstnameCheckBox                           chk                   chkReadonlyPicture clip                       clp                   clpToolbarCommunications                     com                   comFaxControl                            ctl                   ctrCurrentData control                       dat                   datBiblioDirectoryDirectory List Box                 dir                   dirsourceCommon dialog ctrl                 dlg                   dlgfileOpenDrive List Box                     drv                   drvTargetfile List Box                      fil                   filSourceForm                               frm                   frmEntryFrame (3d)                         fra                   fraStyleGauge                              gau                   gauStatusGroup push button                  gpb                   gpbChannelGraph                              gra                   graRevenueGrID                               Grd                   GrdPricesPen Hedit                          hed                   hedSignatureHorizontalscrollbar                hsb                   hsbVolumeImage                              img                   imgIconPen Ink                            ink                   inkMapKeyboard key status                key                   keyCapsLabel                              lbl                   lblHelpMessageline                               lin                   linVerticalMDI child form                     mdi                   mdiNoteMAPI message                       mpm                   mpmSentMessageMAPI session                       mps                   mpsSessionMCI                                mci                   mciVIDeoMenu                               mnu                   mnufileOpenObject                             obj                   objUsertableOption button (3d)                 opt                   optRedOutline control                    out                   outOrgChart3d Panel                           pnl (3d)              pnlTitleListReport control                     rpt                   rptQtr1EarningsShape controls                     shp                   shpCircleSpin control                       spn                   spnPagesTimer                              tmr                   tmrAlarmVertical scroll bar                vsb                   vsbRateDatabase Objects                   Prefix                Example--------------------------------------------------------------------------ODBC Database                      db                    dbAccountsODBC Dynaset object                dyn                   dynSalesByRegionFIEld collection                   fld                   fldCustomerFIEld object                       fld                   fldAddressForm                               frm                   frmNewUserIndex object                       IDx                   IDxAgeIndex collection                   IDx                   IDxNewAgeMacro                              mcr                   mcrCollectUsersqueryDef object                    qry                   qrySalesByRegionquery                              qry                   qrySalesByRegionReport                             rpt                   rptAnnualSalesSnapshot object                    snp                   snpForecasttable object                       tbl                   tblCustomertableDef object                    tbd                   tbdCustomers				

下表列出了标准的第三方供应商名称前缀字符与控件前缀一起使用:
vendor                         Abbreviation-------------------------------------------MicroHelp (VBTools)            mPioneer Software Q+E Database  pCrescent Software              cSherIDan Software              sOther (miscellaneous)          oObjects                            Prefix                Example---------------------------------------------------------------------Alarm(Microhelp)                   almm                  almmAlarmAnimate(Microhelp)                 anim                  animAnimateCallback(Microhelp)                calm                  callbackCombo Box(Pioneer)                 cbop                  cbopComboBoxCombo Box(SherIDan)                cbos                  cbosComboBoxDB_Check(Pioneer)                  chkp                  chkpCheckBoxchart(Microhelp)                   tm                    tmChartClock(Microhelp)                   clkm                  clkmClockCommand button(Microhelp)          cmdm                  cmdmCommandbuttonDB_Command(Pioneer)                cmdp                  cmdpCommandbuttonCommand button(Group)(Microhelp)   cmgm                  cmgmBttonCommand button (icon) (Microhelp)  cmim                  cmimCommandbuttonCardDeck(Microhelp)                crdm                  crdmCardDice(Microhelp)                    dicm                  dicmDiceSSDir(SherIDan)                    dirs                  dirsDirListSSDrive(SherIDan)                  drvs                  drvsDriveListfile List(Microhelp)               film                  filmfileListSSfile(SherIDan)                   fils                  filsfileListFlip(Microhelp)                    flpm                  flpmbuttonForm Scroll(Microhelp)             fsrm                  fsrmFormScrollGauge(Microhelp)                   gagm                  gagmGaugeGraph(Other)                       gpho                  gphoGraphQ_GrID(Pioneer)                    Grdp                  GrdpGrIDHorizontal Scroll bar(Microhelp)   hsbm                   hsbmScrollDB_Hscroll(Pioneer)                hsbp                   hsbpScrollHisto(Microhelp)                   hstm                   hstmHistographInvisible(Microhelp)               invm                   invmInvisibleIcon Tag(Microhelp)                itgm                   itgmListBoxKey State(Microhelp                kstm                   kstmKeyStateLabel (3d) (Microhelp)             lblm                   lblmLabelline(Microhelp)                    linm                   linmlineDB_List(Pioneer)                   lstp                   lstpListBoxSSList(SherIDan)                   lsts                   lstsListBoxMDI Control(Microhelp)             mdcm                   mdcmMDIChildSSMenu(SherIDan)                   mnus                   mnusMenuMarque(Microhelp)                  mrqm                   mrqmMarqueOddPic(Microhelp)                  odpm                   odpmPicturePicture(Microhelp)                 picm                   picmPictureDB_Picture(Pioneer)                picp                   picpPictureProperty Vwr(Microhelp)            pvrm                   vrmPropertyVIEwerDB_RadioGroup(Group)(Pioneer)      radp                   radqRadioGroupSlIDer(Microhelp)                  sldm                   sldmSlIDerSpinner(Microhelp)                 spnm                   spnmSpinnerSpreadsheet(Microhelp)             sprm                   sprmSpreadsheetStretcher(Microhelp)               strm                   strmStretcherScreen Saver(Microhelp)            svrm                   svrmSaverSwitcher(Microhelp)                swtm                   swtmSwitcherTag(Microhelp)                     tagm                   tagmListBoxTimer(Microhelp)                   tmrm                   tmrmTimerToolbar(Microhelp)                 tolm                   tolmToolbarTree(Microhelp)                    trem                   tremTreeinput(Microhelp) (Text)            txtm                   inpmTextDB_Text(Microhelp)                 txtp                   txtpTextVertical Scroll bar(Microhelp)     vsbm                   vsbmScrollDB_VScroll(Pioneer)                vsbp                   vsbpScroll
总结

以上是内存溢出为你收集整理的VB 的信息: 对象匈牙利表示法命名约定全部内容,希望文章能够帮你解决VB 的信息: 对象匈牙利表示法命名约定所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1290222.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-09
下一篇 2022-06-09

发表评论

登录后才能评论

评论列表(0条)

保存