Sams Teach Yourself Visual Basic 6 in 24 Hours

Sams Teach Yourself Visual Basic 6 in 24 Hours

By Greg Perry

Visual Basic's Code Window Help

Can you remember the named literals in this lesson's tables? How can you remember that the named literal value to display three buttons—Yes, No, and Cancel—is the vbYesNoCancel named literal?

Fortunately, Visual Basic supplies you with all the help you need. As soon as VB's Code editor recognizes that you're entering a function, the editor immediately displays pop-up help that displays the function's format, as shown in Figure 6.5.

06fig05.gif

Figure 6.5 Visual Basic displays the function's format for you.

Visual Basic gives you help not only with a function's format, but also with the function's named literals. When you get to any function argument that requires one of the named literals, Visual Basic displays a drop-down list box such as the one in Figure 6.6, from which you can select a named literal. To accept the selected named literal, press Enter, type a comma, or press the Spacebar to continue with the program.

06fig06.gif

Figure 6.6 Visual Basic displays the function's named literals.

Share ThisShare This

Informit Network