Page 1 of 1

[solved]Msgbox with Yes/No

PostPosted: 19. February 2012 22:03
by mickeymouse
I usually use 'alert' to give information messages but now I would like to give a message with a Yes/No answer.

I tried:
{var x = msgbox(\"Are you sure you want to AMEND?\",4,\"Precaution Message.\")
if (x==6){return true;}
else{return false;}
}

but it doesn't work. I don't get a message at all.

Thanks

Re: Msgbox with Yes/No

PostPosted: 20. February 2012 00:22
by mickeymouse
OK. I found the answer which is as follows (for the benefit of other users):

{var r=confirm(\"Are you sure you want to AMEND?\");
if (r==true) {return true};
else {return false;}}