Element Name | Description |
functionName | The name of the function. |
argumentList | A comma separated list of declarations indicating the values to be passed to the function in function calls. This element is optional. The syntax for each of the arguments listed is:
arg1 As dataType
arg1 is the variable name for the argument passed into the function.
As dataType specifies the variable's data type. You can omit this clause and append a data type suffix character to arg1 to declare the variable as one of the scalar data types. |
dataType | The data type of the value returned by the function. This element is optional.
dataType can be any of the scalar data types, or Variant, or a class name.
You can omit this clause and append a data type suffix character to functionName to declare the variable as one of the scalar data types. |
statements | One or more lines of code that specifiy the work the function is to perform. These statements can contain:
- assignment statements
- variable declarations
- calls to other subprograms
- control flow statements
|