Wednesday, 4 July 2012

Ex11: Select Case statement in VBScript

<!DOCTYPE html>

<script type="text/vbscript">

Select Case d
  Case 1
    document.write("Sleepy Sunday")
  Case 2
    document.write("Monday again!")
  Case 3
    document.write("Just Tuesday!")
  Case 4
  Case 5
  Case 6
    document.write("Finally Friday!")
  Case Else
    document.write("Super Saturday!!!!")
End Select

<p>This example demonstrates the "Select Case" statement.<br />
You will receive a different greeting based on what day it is.<br />
Note that Sunday=1, Monday=2, Tuesday=3, etc.</p>


No comments:

Post a Comment