12-11-2009, 10:23 AM
Hi Charles
below is Select case Syntax
below is Select case Syntax
Code:
MyVar="Red"
Select Case MyVar
Case "red" document.bgColor = "red"
Case "green" document.bgColor = "green"
Case "blue" document.bgColor = "blue"
Case Else MsgBox "pick another color"
End Select