The Method Builder
The Method Builder assists you in creating user defined sub or function procedures.
You will be able to set the scope to public, private or friend, and mark
the procedure as default.
To insert a sub or a function by using the Method Builder:
-
Open the code module where you want to insert the method.
-
Click New Method on the Code Edit Tools toolbar or select the
same entry in the CodeSMART main menu in order to display the New Method
dialog box (quick toolbar
and menu references are available).
-
Specify the name of the new method in the corresponding text box.
-
Select a standard or specify a new return data type, if you want
to create a function instead of a sub procedure. Choose (None - it's a 'Sub')
if you want to create a sub procedure.
-
Optionally, you can specify the method's arguments. You can also set
these arguments after you have inserted the method template in the Code window.
-
Set the method's scope to either Public, Private
or Friend, according to your needs.
-
If you want the method to be registered as default then you should mark
the corresponding check-box.
-
Press Insert in order to insert the method's template into the
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 method.
See also
Back To Top
|