CHAPTER 5 STORING AND RETRIEVING APPLICATION (Web design software) DATA
CHAPTER 5 STORING AND RETRIEVING APPLICATION DATA Here, a constant named cAppName is defined and assigned a string of text. The constant is then used to display the name of the application in a pop-up dialog box generated by the MsgBox function, as Figure 5-4 shows. Once defined, a constant can be referred to over and over again. Figure 5-4. Constants provide a way to define data within your applications that cannot be changed during program execution, as shown on Windows. Adding a Constant to a Window Constants defined within a window can have a public, protected, or private scope. The following procedure outlines the steps involved in adding a constant to a window. Note The procedure you follow to declare a constant within a module and a class is practically identical to the procedure used to declare one within a window. The only difference is this: with modules, your choices for scope are Global, Public, and Protected, instead of Public, Protected, and Private. 1. Open the Code Editor for the appropriate window. 2. Click the Add Constant button or click Project . Add . Constant. The Add Constant declaration field is displayed. 3. Enter a name, data type, and value for the constant. 4. Click one of the three scope buttons located to the right of the Declaration field, as shown in Figure 5-5. Figure 5-5. REALbasic lets you select a scope by clicking the Public, Protected, or Private buttons, as shown on Linux.
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.