Syntax: Public | Private Function <Function Name> (parameters)
<Statements>
<Exit Function>
End Function
Public: Indicates that the Function is accessible to all scripts.
Private: Indicates that the Function is accessible only to the script where it is declared
Function: It is a key word
Function Name: Name of the function
Parameters: List of variables that are passed to the function when it is called.
Statements: Any group of statements to be executed within the body of the Function procedure.
Exit Function: It causes an immediate exit from a Function.
Contributed by: Vamshi Gowtham
m.vamsigowtham@gmail.com
<Statements>
<Exit Function>
End Function
Public: Indicates that the Function is accessible to all scripts.
Private: Indicates that the Function is accessible only to the script where it is declared
Function: It is a key word
Function Name: Name of the function
Parameters: List of variables that are passed to the function when it is called.
Statements: Any group of statements to be executed within the body of the Function procedure.
Exit Function: It causes an immediate exit from a Function.
Contributed by: Vamshi Gowtham
m.vamsigowtham@gmail.com