This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

loop for switch case

 
Luen Hong Wuan
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've tried to loop a switch case, to prompt for continuation, instead of stopping after one process is done. It resulted in an endless parse, lol.

The code is as below:



I've wanted to do something like, when the program ask if the user wants to continue the transaction and the user says yes (assuming its a confirmDialog with yes/no), it shows this part again :



Can someone point out to me where and which loop do I use to perform such event?
 
Campbell Ritchie
Sheriff
Pie
Posts: 47253
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't use such long lines; your code is hard to read and I had to edit it.

You haven't shown us the code of your loop, so we can't tell how the loop works.
 
Luen Hong Wuan
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, sorry. I forgot the preview the codes earlier.
 
Campbell Ritchie
Sheriff
Pie
Posts: 47253
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You still haven't shown us the loop code.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic