Jump to content

exiting a script while the script is running


This topic is 6573 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 6573 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.