Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
gzforever
Posted - 11/28/2016 : 3:36:38 PM I need to create a simple dialog box. The dialog box should have only two buttons - 'yes' or 'no' (it can be 'ok' or 'cancel') and the text "do you want to continue" above.
If user press YES, it should change the value of int variable - i=1. If user press No , the variable i=0.
Then i can decide what script should do, depending on the user choice.
Kind Regards, Jaromir Zarczynski
2 L A T E S T R E P L I E S (Newest First)
yuki_wu
Posted - 11/28/2016 : 10:29:12 PM Hi Jaromir,
type –n can help to create a dialog box with Yes and No buttons.
Everything works great for me. This is exactly what i wanted (i just added int variable, which i desired), except one thing. I don't want the 'cancel' button in dialog box. How to get rid of it ?