Let’s try to find the diameter of a circle. Statements: Set of actions that are performed within the function. Type: It is the data type of the value returned by the function. It will be discussed later in this tutorial. An argument can be passed by ByVal or ByRef. Multiple variables are separated by commas. The name should not exceed 255 characters in length.ĪrgList: List of variables that are passed to a function when it is called.Usage of a space, period (.), exclamation mark &, $, # is not allowed.The first character should be a character.There are certain naming conventions that are to be followed. More about Modifier and scope will be discussed later in this tutorial.įunction: It is the keyword and has to be mentioned while declaring a function.įunctioname: You can mention any name that you choose for a function. Modifier: It is an optional field, if not specified it takes the default value of Public. A function is normally used when you wish to return a value. Functions are basically used when there is a need for certain tasks to be performed repeatedly.įunctions are mainly used to avoid redundancy and achieve reusability in a large program. A function is a program that has a set of statements that are performed and the result is returned.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |