September 5, 200718 yr 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?
September 5, 200718 yr Well of course it is! - Read up upon: http://www.filemaker.com/help/FunctionsRef-236.html --sd
September 5, 200718 yr 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
Create an account or sign in to comment