By Reference Vs. By Value
◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
By Reference Vs. By Value
■ Passing an argument to a procedure "by reference" means that the procedure
is given the address of the argument. This allows procedures to change the
argument's value in the calling procedure.
■ Passing an argument to a procedure "by value" means that the procedure is
given a value of the argument. This allows the argument to change locally
in the procedure without affecting the value of the variable in the
calling procedure.
See: ◄CALL Statement (Basic Procedures)►
◄DECLARE Statement (Basic Procedures)►
◄FUNCTION Statement►
◄SUB Statement►