Summary

Completed

In this module, you learned how to create custom procedures. Procedures can be defined as a public, local, protected, or internal.

You can pass parameters into your procedure. These parameters can be passed by value or by reference.

If you pass a parameter by value, then you pass a copy of the value into the procedure, and the original value stays unmodified. With a parameter by reference, the memory position is passed. If you modify the value, the original value is changed as well. To return a value, you can use the exit statement.