Java Script.....

  • Thread starter Thread starter Jonathan Smith
  • Start date Start date
J

Jonathan Smith

Is there any equivalent function in Java script similar to

Select Case in Vb.Net?

I usung IE%+.

Thanks,

Jonathan
 
This really should have gone to a JavaScript newsgroup but as any JavaScript
book will tell you, there's the switch statement and there's always the
trusty if...else statement.
 
switch()
{
case <...>:
case <...>:
default:
}

Is there any equivalent function in Java script similar to

Select Case in Vb.Net?

I usung IE%+.

Thanks,

Jonathan
 
javascript has the switch statement like c/c++/c#.

switch(a)
{
case 1:
....
break;
case 2:
....
break;
default:
}

the main difference in javascript, is any object type can be used (not just
numbers), and the compare is "===" (equivalent) not a "==" (equals).

-- bruce(sqlwork.com)



| Is there any equivalent function in Java script similar to
|
| Select Case in Vb.Net?
|
| I usung IE%+.
|
| Thanks,
|
| Jonathan
|
|
|
|
|
|
 
Back
Top