Add a FunctionDeclares a new function. A Function procedure is a series of steps enclosed by the Function and End Function actions. The Function procedure performs a task and then returns control to the calling macro or function. When it returns control, it also returns a value to the calling macro or function. Each time the procedure is called, its steps run, starting with the first executable step after the Function statement and ending with the first End Function, or Exit Function action encountered. Parameters
Function ArgumentsThere are three parameter type:
This parameter is optional With this option checked, the parameter is optional, and you need to assign a default parameter value. The optional parameters can be omitted when the function is called. Returning valueThe value a Function procedure sends back to the calling macro or function is called its return value. The procedure returns this value in the action "Exit Function".
| |
|