Using the Immediate Window to Test Your Functions

Notice in the CapFirstLetter function that the mid function provides an ideal method of evaluating strings one character at a time. In this case, you are not only evaluating each character, you are changing the characters that meet the conditions.

The Immediate window gives you a quick and easy method to test your program with its command-line capability. The following steps walk you through testing the function in the Immediate window:

1.
Open the Convention database, under Objects click Modules, click Proper, and then click Design to open the module in Design view.
2.
Press Ctrl+G to open the Immediate window.
3.
With your cursor in the Immediate window, type ? CapFirstLetter("pARk pLaCe") ...

Get Access 2002 Programming by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.