z178 Posted September 5, 2007 Share Posted September 5, 2007 I use a button to show a custom dialog asking a user if they want to perform a function. Even if I cancel the dialog using the cancel button, the function is performed. This is how I did it in script maker [color:blue]Show Custom Dialog [] [color:blue]If [color:gray]--statements here [color:blue]Else [color:gray]--more statements here [color:blue]End If How can I abort the script if the user selects the cancel button? Link to comment Share on other sites More sharing options...
Søren Dyhr Posted September 5, 2007 Share Posted September 5, 2007 Well of course it is! - Read up upon: http://www.filemaker.com/help/FunctionsRef-236.html --sd Link to comment Share on other sites More sharing options...
Vaughan Posted September 5, 2007 Share Posted September 5, 2007 You need to have something in the IF statement. In this case, use the Get( LastMessageChoice ) function. It'd be something like: If[ Get( LastMessageChoice ) = 1 ] stuff when button 1 is clicked Else If[ Get( LastMessageChoice ) = 2 ] stuff when button 2 is clicked Else stuff when button 3 is clicked End If Link to comment Share on other sites More sharing options...
z178 Posted September 5, 2007 Author Share Posted September 5, 2007 Thanks Guys Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6170 days old. Please don't post here. Open a new topic instead.
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