CHAPTER 6 MAKING DECISIONS WITH CONDITIONAL (Web design service) LOGIC

CHAPTER 6 MAKING DECISIONS WITH CONDITIONAL LOGIC 171 You can also set up Case statements using different ranges or types of values, as the following shows. Select Case intMonthOfBirth Case 1, 4, 7, 10 MsgBox(”Department birthday celebrations occur on the 15th of the month.”) Return Case 2, 5, 8, 11 MsgBox(”Department birthday celebrations occur on the 21st of the month.”) Return Case 3, 6, 9, 12 MsgBox(”Department birthday celebrations occur on the 1st of the month.”) Return End Select #If #EndIf One of REALbasic s primary selling features is its capability to compile applications that can run on different OS platforms. Each OS platform has certain, completely unique features. For example, only Windows OSs support the registry. To develop applications that can execute on certain OSs, at times, you need to customize portions of your application to leverage OS-specific features. To provide you with a mechanism for handling these situations, REALbasic provides the #If #EndIf block. The #If #EndIf block can be used to handle other situations, too, such as supporting the creation of applications that require features found in certain versions of REALbasic or that run differently in debug mode versus as a standalone application. REALbasic limits the #If #EndIf block s functionality by only allowing it to work with a specific set of Boolean constants, which Table 6-1 shows. Table 6-1. REALbasic Boolean Constants Constant Classification Description DebugBuild Debug vs. Standalone Evaluates to True when the application is run within the REALbasic IDE. RBVersion REALbasic Version Returns a True or False value, indicating the version level being used to run a REALbasic application. TargetHasGUI Application Type Returns a value of True if the application being run is a Desktop application (as opposed to a Console, Service, or Event Driven Console application). TargetBigEndian OS Returns a value of True if the application being run uses the Big Endian byte order (e.g., Macintosh systems). Continued
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.

Leave a Reply