Jump to content
Sign in to follow this  
quietus24

How to act on Return Value from MsgBox

Recommended Posts

quietus24

Hi,

I know that is slight amatuerish. Couldn't quite find an example in the Help file.

Say I have a Msgbox with Yes Or No. The return values are 6 and 7

Now I would like to make an If Statement based on the output of the box.

What should I check? What is the macro or ref for the "Return Value"

Example

If "Return Value" = 6 then

Etc etc

EndIf

If "Return Value" = 7 then

Etc etc

Endif

Thanks very much

Share this post


Link to post
Share on other sites
killaz219

Here

$msg = MsgBox(4, "", "Yes and no example")
If $msg = 6 Then
   MsgBox(0, "", "you clicked yes")
ElseIf $msg = 7 then
   MsgBox(0, "", "you clicked no")
EndIf

Share this post


Link to post
Share on other sites
quietus24

Cool....

thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×