
Look at the example code generation to see what Procedure Builder can do you for you.
Start this dialog from the Code Explorer, Toolbar
or using Alt-CR (Code-vb - P rocedure)
If selected all variables in the procedure will keep their value between calls.
Select if a variable is to be Public or Private or procedure or module level or part of the interface.
Sub or Function (returns value).
Name of the procedure.
Arguments of the procedure.
Move selected argument one position up.
Move selected argument one position down.
Type of the value that is returned in case of a function
For those professional developers who take documenting code seriously :). The description is added below the procedure interface it is part of , e.g.
Procedures contain quite a lot of repetitive statement. This group box lets you determine in each case you are adding a procedure which lines to include and which not.
In case it is a function there will at least be one statement determining the value to be returned. Check this and such a statement gets inserted:
Whether to include procedure header text or not.
You have to determine in each case if you want this additional text.
If the process involved with the property is lengthy, it makes sense to add Hourglass.
Determines if all arguments are placed on the same line ...
If checked insert procedure constant at top of procedure of not yet present.
If checked insert module constant at top of module of not yet present.
Select what error handling, if any, you want added from the combo box.
The default is set in Settings .
If you use global constants ( accessibility ) and keep them in an other then the current module. You can select this module here, which saves you a trip to the other module and back.
Create the procedure.
Closes the builder without creating the constant .
Starts this Help topic