172 CHAPTER 6 MAKING DECISIONS WITH CONDITIONAL (Web server)

172 CHAPTER 6 MAKING DECISIONS WITH CONDITIONAL LOGIC Table 6-1. Continued Constant Classification Description TargetLittleEndian OS Returns a value of True if the application being run uses the Little Endian byte order (e.g., PCs). TargetCarbon OS Returns a value of True if the application being run executes Carbon/Mac OS X code (e.g., Mac Classic and Mac OS X). TargetMachO OS Returns a value of True if the application is being run on a Macintosh computer running Mac OS X. TargetMacOS OS Returns a value of True if the application is being run on a Macintosh computer running either Mac Classic or Mac OS X. TargetMacOSClassic OS Returns a value of True if the application is being run on a Macintosh computer running Mac Classic. TargetLinux OS Returns a value of True if the application is being run on a Linux computer. TargetWin32 OS Returns a value of True if the application is being run on a Windows computer. To understand the #If #EndIf statement, seeing it in action can help. The following statements demonstrate how to test for the OS being used to run the application. #If TargetMachO MsgBox(”This application is running on a computer running on Mac OS X.”) #ElseIf TargetWin32 MsgBox(”This application is running on a computer running on Windows.”) #ElseIf TargetLinux MsgBox(”This application is running on a computer running on Linux.”) #EndIf Note As the previous example demonstrates, the Then keyword is optional when working with the #If #EndIf statement. For another example of how to use the #If #EndIf code block, check out the RB Word Processor application in Chapter 9.
Note: If you are looking for cheap and reliable webhost to host and run your mysql application check mysql web server services.

Leave a Reply