redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers

Ask your IT question here

how to handle a situation with multiple cases


Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    Programming Forums -> JavaScript forum
View previous topic :: View next topic  
Author Message
Klimapol
Enthusiastic Coder


Joined: 27 May 2006
Posts: 134
ovigo22, t's also python.
Object full of functions is tasty.

Reply with quote
 
kadamat
Enthusiastic Coder


Joined: 01 Jun 2006
Posts: 88
So, it would be used like: selection = document.frmCheckMe.giveaway.value;
Then switch (selection)
?
Then case "name of item selected" :
Then the stuff I want to happen
Then the next case and so on?

Reply with quote
 
Gladis
Enthusiastic Coder


Joined: 24 May 2006
Posts: 107
Ok so...
Http://www.javascriptkit.com/javatutors/switch.shtml

Reply with quote
 
kadamat
Enthusiastic Coder


Joined: 01 Jun 2006
Posts: 88
Ah. ha! Thanks.
Reply with quote
 
Klimapol
Enthusiastic Coder


Joined: 27 May 2006
Posts: 134
Gladis, Are the javascript tutors or Java tutors.
?

Reply with quote
 
Gladis
Enthusiastic Coder


Joined: 24 May 2006
Posts: 107
Im not sure about javascript but after the case "somecrap": you can put { } break
Klimapol, check the link and you see javascript

Reply with quote
 
Page 3 of 3 Goto page Previous  1, 2, 3
Post new topic   Reply to topic    Programming Forums -> JavaScript forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group