Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Message Box, Yes, No & Cancel
#1
Hi,

I' using the following code to show a Yes, No or Cancel box,

Code:
Copy      Help
What Severity is this?
str sev
if mes("Is the keyboard still usable?" "Question" "YN?") == 'Y'
    sev="yes"
else
    sev="no"

...however I want to now add a Cancel option.

I know I add C to do this, i.e. YNC, however, how can I set it so if Cancel is pressed it will stop the macro using ret?

Thanks,

Paul.
#2
Function Function5
Code:
Copy      Help
str sev
sel(mes("Is this keyboard usable?" "Question" "YNC"))
,case 'Y'
,sev = "yes"
,case 'N'
,sev = "no"
,case 'C' ret
out sev


Forum Jump:


Users browsing this thread: 1 Guest(s)