Local Variables

You define and use local variables inside a single process method. The scope of this type of variable is the method itself, which means that it cannot be seen from outside. Once method execution ends, the value stored in a local variable is lost.

Creating a Local Variable

Local variables can be created by performing the following actions:


Example:

" var = 5 "

var is not a variable yet, so the compiler gets an error.

By right-clicking on the error, a ix option appears showing a possible solution for the problem.