180 CHAPTER 6 MAKING DECISIONS WITH CONDITIONAL (Managed web hosting)

180 CHAPTER 6 MAKING DECISIONS WITH CONDITIONAL LOGIC Because REALbasic automatically takes care of it for you, you needn t add the FileQuit menu item on the File menu. The user interface for the RB Number Guess game is now complete, as Figure 6-4 shows. Figure 6-4. The interface layout for the RB Number Guess game Defining Properties The RB Number Guess game uses several variables to store and track information needed by the game. These variables are accessed by different parts of the application, so rather than declaring them as local variables, you must set them with a higher-level scope. To accomplish this, set up each of these variables as window properties with a public-level scope. Table 6-8 outlines these properties and their data type. Table 6-8. Custom Properties Added to the RB Number Guess Game Property Data Type Description intNoGuessed Integer Keeps track of the number of guesses made intSecretNumber Integer Stores the game s randomly generated secret number intTotalNoOfTurns Integer Keeps track of the total number of turns taken
Searching for affordable and proven webhost to host and run your servlet applications? Go to Linux Web Hosting services and you will find it.

Leave a Reply