LOCAL FUNCTIONS AND VARIABLES

LOCAL FUNCTIONS AND VARIABLES
Local Functions
A local function is a function that can be called in the object in which it is defined. Any function that not be defined by local function called from other objects as well as the objects from which its defined.
Local Variables
A local variable is avariable whose scope is limited to single function. This means that in this function trigger code, a local variable can be used like any other variable. If the name of a local variable is reffered outside of the function in which it is defined, syntax error will result.
Related Posts with Thumbnails