The Property Builder
The Property Builder can assist you in the process of
creating new property procedures generating and inserting
most of the required code.
To create a new property:
-
Open the code module where you want to insert the property.
-
Click New Property on the Code Edit Tools toolbar or select the
same entry in the CodeSMART main menu (quick toolbar
and menu references are available).
The New Property dialog box will be displayed.
-
Specify the name of the new property in the corresponding text box.
CodeSMART automatically proposes a private variable, named in accordance
with the current naming standard settings,
to hold the property value.
-
Select a standard or specify a new data type.
-
Optional. Specify a default value for the property. CodeSMART will create
the code that will initialize the property with the default value.
-
Set the property's type to either Read/Write, Read-only, Write-only or
Write once/Read many according to your needs.
-
Set the property's scope to either Public, Private
or Friend according to your needs.
-
In the Details section specify if you want to implement a Set
instead of a Let property and if you want CodeSMART to build the code
that initializes (creates) and respectively destroys the object.
If the current component is a User Control you can initialize the property
using the InitProperties event instead of Initialize. You can
also preserve the property value using the property bags.
-
Specify if you want the property to be registered as default by marking
the corresponding check-box.
-
Press Insert in order to insert the property template into the
current Code window and then automatically close the dialog box, or
Insert and New if you want to avoid the dialog being closed and continue
with a new property.
See also
Back To Top
|