Menus
Menus
• Sub procedures that perform actions, but are not associated with any
specific event such as a click event. One use of sub procedures is to
set property values for a series of objects. Another use is to perform
an action such as shutting down an application by use of a standard
shutdown process.
• · Function procedures (also called user-defined functions [UDFs] or
simply functions) that perform actions, are not associated with any
specific event, and that also return a value. You use functions to
calculate values that are returned to the calling procedure.
• Both sub and function procedures are treated as methods (members)
of the form and are listed with the namespace for the form.
• Neither sub nor function procedures are associated with an event –
they are separate procedures.
Creating a Sub Procedure