Contents
Naming Convention: Suggested Name Prefixes
| VB Control | Prefix |
|---|---|
| Radio button | rdb |
| Picture box | pic |
| Tab control | tab |
| Text box | txt |
What is naming conventions in coding?
In computer programming, a naming convention is a set of rules for choosing the character sequence to be used for identifiers which denote variables, types, functions, and other entities in source code and documentation.
Is naming convention of label control?
e.g. Button, Link Button, Image Button tend to be named ‘somethingButton’. Combo boxes, radio button lists all end up as ‘somethingSelector’. TextBoxes and Calendars are ‘somethingInput’. That way I get a rough idea of what sort of control it is without the name being tied to the actual implementation.
Which is the correct naming convention for a primary button?
A blue primary button in your system, for example, should be named button/primary/default—without any mention of its color. This naming structure ensures that your element evolves along with your system, so if the color of that primary button changes, you won’t have to update its name throughout your system and codebase components.
While naming, try to focus on the element’s category and role, but not its form. A blue primary button in your system, for example, should be named button/primary/default—without any mention of its color.
Which is an example of a naming convention?
The naming conventions suggested for them are provided along with some examples . A dropdownlist from which the user can select values. It can be modified to be a’ textbox cum listbox’. Used for selecting options. Any number of check boxes can can be selected at a time. This is found in a group. Used for selecting options.
How to use naming conventions in VBA form controls?
Here using naming conventions, we cannot name both controls str_username. It would be too confusing. Hence, we have to name the label lblusername and the textbox txtusername. From this explanation, it probably is clear that VBA form controls also have naming conventions which need to be put to practice.