Indigo Rose Software
  #1  
Old 1 Week Ago
mimo mimo is offline
Forum Member
 
Join Date: Jul 2009
Posts: 136
how to create yes or no message

how to create yes or no message. what i mean that i want if i press yes i jump to the page and if i press no nothing happen .so please help me to do this

this is my project attached (pretty simple example)
Attached Files
File Type: apz yes or no message project.apz (128.6 KB, 6 views)
Reply With Quote
  #2  
Old 1 Week Ago
rexzooly rexzooly is offline
Forum Enthusiast
 
Join Date: Jul 2007
Posts: 1,515
Quote:
Originally Posted by mimo View Post
how to create yes or no message. what i mean that i want if i press yes i jump to the page and if i press no nothing happen .so please help me to do this

this is my project attached (pretty simple example)
yes you can very simple

ishappy = Dialog.Message("Prying Question #023", "Are you happy?", MB_YESNO, MB_ICONQUESTION, MB_DEFBUTTON1);

if ishappy == IDYES then
---DO
else
---DO
end
Reply With Quote
  #3  
Old 1 Week Ago
jpdragon jpdragon is offline
Forum Member
 
Join Date: Dec 2007
Posts: 47
Other people help me alot on this forum, therefore I am giving a little help to you as well.

Try this.

Put this code to your "On Click" of the "Go to Page 2" button.

-- Ask the user going to Page 2
nChoice = Dialog.Message("Notice", "Are you sure you want to go to page 2.", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1);

-- If yes was chosen, goto page 2.
if nChoice == 6 then
Page.Jump("Page2");
else
Dialog.Message("Good Choice", "You're staying here.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
end
Attached Files
File Type: apz yes or no.apz (128.7 KB, 3 views)
Reply With Quote
  #4  
Old 1 Week Ago
rexzooly rexzooly is offline
Forum Enthusiast
 
Join Date: Jul 2007
Posts: 1,515
I just gave him the code why post the same code with a little change ? people have to do some work there selfs.
Reply With Quote
  #5  
Old 1 Week Ago
mimo mimo is offline
Forum Member
 
Join Date: Jul 2009
Posts: 136
thank u very much

i agree with u that all the users in this forum is very kind and very helpful like u.
u gave me 2 fantastic and easy solutions so i appreciate your help and wish u good luck .
Reply With Quote
  #6  
Old 1 Week Ago
rexzooly rexzooly is offline
Forum Enthusiast
 
Join Date: Jul 2007
Posts: 1,515
Quote:
Originally Posted by mimo View Post
i agree with u that all the users in this forum is very kind and very helpful like u.
u gave me 2 fantastic and easy solutions so i appreciate your help and wish u good luck .
good luck to yourself on your project.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 09:36 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software