Standard Prefixes (For all Beginners, Intermediate, and Advanced)
When naming a control, it is recomended that you start the name with a three-letter prefix that helps you identify what kind of control you are referencing. For example, a form should be called frm1 instead of Form1. Also I've included one piece of code that everyone should include in their projects.
AI
AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Source Code
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>New Page 1</title> </head> <body> <p>Here are some standard prefixes for commonly used controls.<br> Prefix: Control:<br> ani Animation button<br> cbo Combo box<br> ch3 3D Check box<br> chk Check box<br> clp Picture clip<br> cm3 3D Command button<br> cmd Command Button<br> ctr Control (specific type unknown)<br> dat Data<br> dir Directory list box<br> dig Common dialog box<br> drv Drive list box<br> fil File list box<br> fr3 3D Frame<br> fra Frame<br> frm Form<br> gpb Group push button<br> gra Graph<br> grd Grid<br> hsb Horizontal scroll bar<br> img Image<br> ils Image list<br> lbl Label<br> lin Line<br> lst List box<br> mci Multimedia MCI<br> mnu Menu<br> opt Option button<br> pic Picture box<br> prg Progress bar<br> shp Shape<br> sli Slider<br> spn Spin button<br> tlb Toolbar<br> tmr Timer<br> tre Tree view<br> txt Text box<br> vtb Vertical scroll bar<br> <br> Also remember to include "Option Explicit" w/out the quotation marks in your declarations. This small piece of code requires that a variable's name be declared before they are used in code. VERY IMPORTANT. Remember to add this to all of your projects, because it will help you in so many ways! Another way to include Option Explicit in your program is to select Tools | Options from the menu bar. Under the Editor tab, one of the settings is Require Variable Declaration. When selected, any new module automatically has Option Explicit in its General Declarations section.</p> </body> </html>
Original Comments (3)
Recovered from Wayback Machine