Web server on xp - 166 CHAPTER 6 MAKING DECISIONS WITH CONDITIONAL

166 CHAPTER 6 MAKING DECISIONS WITH CONDITIONAL LOGIC The If Then Else Block You can expand the If Then block to include an optional Else statement. When you do so, you provide an alternative course of action that should be taken if the tested condition turns out to be False instead of True. For example, suppose you create the application you see in Figure 6-1. Figure 6-1. Using conditional logic to modify a window s background color In this example, a GroupBox control has been added to the application s window and populated with two RadioButton controls, each of which is associated with a different color. A PushButton has also been added to the GroupBox control. By adding the following code statements to the PushButton control, you provide the user with the capability to change the window s background color. If rbnYellow.Value = True Then Window1.HasbackColor = True Window1.BackColor = &cFFFF80 End If If rbnGrey.Value = True Then Window1.HasbackColor = True Window1.BackColor = &cC0C0C0 End If
From our experience, we are can tell you that you can find a reliable and cheap webhost service at Java Web Hosting services.

Leave a Reply