Sams Teach Yourself Visual Basic 6 in 24 Hours

Sams Teach Yourself Visual Basic 6 in 24 Hours

By Greg Perry

Summary

In this lesson you learned how to write programs that are properly structured so that you can more easily and quickly write and debug the code. By coding small and numerous modules, and by putting off details until you're ready to code a procedure that performs a single task (although that task may take a few statements), you'll write code that you can easily debug and modify later.

After you break a program into several procedures, however, you must be careful when you pass arguments to the procedures that need them. The way you pass arguments determines how the passing procedure's argument values change. If you pass by value, the passing procedure's values are protected and always left unchanged, no matter what the called procedure does to them.

Now that you've learned how to write your own procedures, you're ready for Hour 14, "Built-in Functions Save Time," which describes many of Visual Basic's built-in functions that you can use in your own programs.

Share ThisShare This

Informit Network