Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cancelling a program from an message box
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00858520
Message ID:
00858526
Views:
10
Neil,

Try this:
>
>IF MESSAGEBOX("Are you sure you want to run a system check",1) = 1
        ** OK button selected
 ELSE
        ** Cancel button selected
 ENDIF
>
Cheers,

Zoran


>I have a messagebox which pops up when I click a button on a form. If the user clicks the cancel button I want to abort the program which will run. How do I do this?
>
>
>MESSAGEBOX("Are you sure you want to run a system check",1)
>
>
>Many Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform