| Start |
|---|
| Introduction to procedures A If no access modifier is specified, a procedure is A A Properties are usually used in class modules (although they are allowed in standard modules as well), exposing accessor to data that is otherwise inaccessible to the calling code. A property that only exposes a Returning a valueA |
| Function With Examples As stated above Functions are smaller procedures that contain small pieces of code which may be repetitive inside a Procedure. Functions are used to reduce redundancy in code. Similar to a Procedure, A function can be declared with or without an arguments list. Function is declared as a return type, as all functions return a value. The Name and the Return Variable of a function are the Same. The Function can be called in various ways inside a function. Since a Function declared with a return type is basically a variable. it is used similar to a variable. Functional Calls: Further the function can also be used as conditions for if and other conditional statements. Further more Functions can have modifiers such as By ref and By val for their arguments. |
Read Article
https://develop.horje.com/learn/1434/reference