O'Reilly logo

F. Scott Barker's Microsoft® Access 2000 Power Programming by F. Scott Barker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

VBA CODING CONVENTIONS

In addition to object naming conventions, LNC proposes several standardized coding conventions for Visual Basic procedures.

Code Comments

There are as many inline Visual Basic code commenting styles as there are Basic coders. Whatever convention you use, the keys are to be terse, yet descriptive and consistent.

LNC suggests placing the following minimum set of comments at the beginning of each procedure:

  • Purpose. Briefly describe the purpose of the procedure.

  • Arguments. List the arguments to a function and how they're to be used.

  • Returns. Describe what the return value of a function signifies.

  • Authors. Name the creator, the date created, the last editor, and the date last edited.

Comments placed on the same line as code should ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required