Team LiB
Previous Section Next Section

Chapter 11: FunctionProcedures

Overview

Up to this point, when I have spoken about procedures, I talked about subs (I am not including methods found in objects). Subs, as you will recall, are blocks of code that perform a task, but do not return a value to the caller.

The syntax for functions is similar to that of subs with only a few differences. Much of what you have learned will be used in a similar fashion. So, for that reason, this chapter will also serve as a review.

In this chapter, you will learn the differences between functions and subs, passing arguments, and examining the built-in functions. Needless to say, this will not be an exhaustive study of these built-in functions. That would require a book in itself. We will look at some commonly used functions, specifically the MsgBox function, as well as the built-in date, time, and payment functions.


Team LiB
Previous Section Next Section