Making Global Declarations for Hello Jill

Unlike most of the programs I’ve discussed in this book, I’m going to include the entire Hello Jill program in the text. (Don’t worry, I counted only 22 lines of code, including the blank lines.) Listing 14.1 shows the global declarations.

Listing 14.1: Global Declarations for Hello Jill

Option Explicit
Const AgentPath = “c:\Program Files\Microsoft Agent\Characters\”

I start this program by specifying Option Explicit. If you don’t understand why I did this, go back and reread Chapter 2. I specify a constant I call AgentPath, which holds the path name where I store the characters. For some reason, Microsoft chose not to store this information in the Registry where all programs could find it. (Maybe this will be fixed in the next release.)

© 1998 SYBEX Inc. All rights reserved.