例子如下:
testcase switchExample ()
INTEGER i
for i = 1 to 12
switch (i)
case 1 // Compares i to 1
Print (i, "Case 1")
case 2, 4 // Compares i to 2 and 4
Print (i, "Case 2, 4")
case 5 to 7 // Compares i to 5, 6, and 7
Print (i, "Case 5 to 7")
case 8 to 9, 11 to 12 // Compares i to 8,9,11,12
Print (i, "Case 8 to 9 and 11 to 12")
default // If i is none of the above
浏览器窗口的声明一般包含以下东西:
• Cut, Copy, Paste, and Select All items on the Edit menu
• The following tool bar buttons: Back, Forward, Home, Reload, and Stop
• The Location combo box, which lists the current URL
• The Web browser's status bar, which is an object of class StatusBar
named Status. It contains a DynamicText object named Message. So to
access the status bar, you use the object Browser.Status.Message.