Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding ConfirmDialog  RSS feed

 
adeeb alexander
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i am able to get the dialog when i run the program. So below that i have a task which should continue when i press ok and cancel when i press cancel
But when i press cancel also the task continue
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by adeeb alexander:
Hi,
...when i press cancel also the task continue



You are not catching and processing the user choice (OK/Cancel)

You need something like


This is a wrong thing to do


Remember, strings are immutable. So you should be using something like

[ June 14, 2008: Message edited by: Maneesh Godbole ]
 
adeeb alexander
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i have tried doing this but i got the error as not a statement,illegal start of expression,class expected
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by adeeb alexander:
Hi,
i have tried doing this but i got the error as not a statement,illegal start of expression,class expected


On which line?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!