You are here: AxTools > CodeSMART 2007 for VB6 > Documentation > User's Guide > Code Builders > The Method Builder
While browsing this page, why not start downloading the evaluation setup kit (direct download, no questions asked).

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:

  1. Open the code module where you want to insert the method.
  2. 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).
    Method Builder
  3. Specify the name of the new method in the corresponding text box.
  4. 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.
  5. 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.
  6. Set the method's scope to either Public, Private or Friend, according to your needs.
  7. If you want the method to be registered as default then you should mark the corresponding check-box.
  8. 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
Code Builders Overview
The Property Builder
The Collection Class Builder
Switch Assignment Values
The SQL/Long String Builder

Back To Top

Copyright © 2008 AxTools - CodeSMART 2007 for VB6 - Code Builders