January 27, 200422 yr I have a script that pauses for the user to enter a field. The user at times wants to exit this script without entering any information. Is there a way to cancel this script without hitting the cancel button manually?
January 27, 200422 yr Obviously the user must do something to exit the script, why not the cancle button. Depending ont he situation you could pause the script for a set period of time the exit automatically. Knowing what your script is intended to do, what are the users options, and why the user woud want to cancel, would help to better answer your question.
January 27, 200422 yr Sure, you can, for example, use Loop [color:"white"]__[/color]Pause/Resume Script [ ] [color:"white"]__[/color]Exit Loop If [Length(field)] [color:"white"]__[/color]Show Message ["Do you want to cancel?"] [color:"white"]__[/color]If [status(CurrentMessageChoice) = 1] [color:"white"]____[/color]Perform Script [sub-scripts, "Cancel"] [color:"white"]__[/color]End If [color:"white"]__[/color]Go to Field ["field"] End Loop Assuming your choices in the Show Message are "Yes" and "No", and that the Cancel script has a Halt (or a call to a Halt) in it.
January 27, 200422 yr Author The script is in find mode. It automatically goes into find mode when you enter the clerking layout. Sometimes the user enters the layout and decides that they don't really want to be there and hits the menu button which is also a script and leaves the current layout, but the script that was active when they entered the clerking layout is still active and hasn't been cancelled out yet. Is there a way to cancel the script using the menu button script without hitting the cancel button manually.
January 27, 200422 yr In the script that is attached to the Menu button insert the Enter Browse Mode script step at the beginning and the Halt script step at the end. Make sure the button itself is formatted to Exit the current script.
Create an account or sign in to comment