Bulk Controls Renamer
Usually it is considered good programming practice to define a
standard in choosing control names. For example,
you may want all the command-button control names to begin with
"btn" and all the text-box control names with "txt".
In order to do that you can use the CodeSMART Standards Manager
in order to enforce the use of a such a naming scheme at control creation.
When you already have a certain number of controls with non-standard
names on a designer, instead of manually rename each of them, you
can use the CodeSMART Bulk Controls Renamer. This tool
can help you choose the appropriate names and perform the desired changes
according to the already defined control naming standards.
Note: The Bulk Controls Renamer generates the names based on existing Caption
and Text properties for the respective controls.
To use the Bulk Controls Renamer:
-
Open a form/designer in Design view.
-
In the CodeSMART main menu, choose the Bulk Controls
Renamer entry from the Designer Tools menu
(quick toolbar
and menu references are available).
-
Select the control types for which you want name changes to be applied.
-
Specify if you want to convert spaces, dots or commas found within each
control's Caption or Text property (whichever applies) to underscores.
-
Set the other existing options if you find them necessary. You may specify for
example how many words to use from the control's Caption or Text property
should be considered and if each one should be convert to title case appearance.
-
You can check out the present standards schemes by clicking the Standards button
to get instant access to the Standards Manager.
-
Press the Rename button in order to perform the changes.
See Also
Back To Top
|