Fossil Rock Posted June 14, 2006 Share Posted June 14, 2006 Clicking either the Yes or No button does the same thing....MsgBox(292,"Continue...","Keep searching?") If @error = 7 Then Exit Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
GaryFrost Posted June 14, 2006 Share Posted June 14, 2006 #Region --- CodeWizard generated code Start --- ;MsgBox features: Title=Yes, Text=Yes, Buttons=Yes and No, Icon=Question If Not IsDeclared("iMsgBoxAnswer") Then Dim $iMsgBoxAnswer $iMsgBoxAnswer = MsgBox(36,"Continue...","Keep searching?") Select Case $iMsgBoxAnswer = 6 ;Yes Case $iMsgBoxAnswer = 7 ;No EndSelect #EndRegion --- CodeWizard generated code End --- SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Fossil Rock Posted June 14, 2006 Author Share Posted June 14, 2006 Thanks, but it does the same thing.... Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
GaryFrost Posted June 14, 2006 Share Posted June 14, 2006 i didn't put code in between, just fill in the blanks in the if statements for example #Region --- CodeWizard generated code Start --- ;MsgBox features: Title=Yes, Text=Yes, Buttons=Yes and No, Icon=Question If Not IsDeclared("iMsgBoxAnswer") Then Dim $iMsgBoxAnswer $iMsgBoxAnswer = MsgBox(36,"Continue...","Keep searching?") Select Case $iMsgBoxAnswer = 6 ;Yes MsgBox(0,"Test","You pressed Yes") Case $iMsgBoxAnswer = 7 ;No Exit EndSelect #EndRegion --- CodeWizard generated code End --- SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Fossil Rock Posted June 14, 2006 Author Share Posted June 14, 2006 Cool, thanks. I've never needed this sort of thing so I didn't have any experience with it. Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now