Inky Phil Posted October 24, 2006 Posted October 24, 2006 I start my scripts with 'allow user abort off' but I have just noticed that the user can press esc (windoze) and the script DOES stop. Anyone any ideas? TIA Phil
John Mark Osborne Posted October 24, 2006 Posted October 24, 2006 This shouldn't happen. Can you post an example of one of the scripts that doesn't work, preferably in an example file so we can replicate the problem. Also, make sure you are running 8.0v3 which you can download for free at: http://www.filemaker.com/support/downloads/index.html
Inky Phil Posted October 25, 2006 Author Posted October 25, 2006 Thanks for replying. I have v3 installed. At your suggestion I prepared a simple file for investigation. On testing this file I was puzzled by somewhat erratic results. Sometimes the esc worked. sometimes it didn't. I have eliminated a hardware problem by trying on another machine. I am going to do a little more digging and will get back to you when I have a more to go on Thanks again Phil
Tim W Posted October 25, 2006 Posted October 25, 2006 Hi Phil, I don't know if this will work. I have not tried this function before, but... Get(AllowAbortState) is supposed to return the current state (ie. 0=off & 1=on). Set up a unstored field with this function as it's calculation and watch in the data viewer as the script executes. It's worth a try. Different get functions behave differently in a network environment, but could not see any mention of how this would behave. At least, if it works, you can see if the value changes during your script. If you get a null value then the host has returned it, according to the documentation (as I read it). Let me know how it goes. HTH Tim
Inky Phil Posted October 26, 2006 Author Posted October 26, 2006 Good thinking Batman! That will def help with the investigation. I will get back to you with the results but it might take a little while cos I threw my pc out the window in frustration.......only kidding......I could have hurt a passing stranger if I threw it out the window .......so I SMASHED IT WITH A HAMMER!!!!! : Nah, not really but I did move on to other areas cos I was getting a bit stressed so I will get back to you when I have had enough counselling to the face the issue again Regards and thanks for the idea Phil
Inky Phil Posted November 9, 2006 Author Posted November 9, 2006 OK Round 2, Can anyone explain the purpose of, or need for, the second allow abort off step in the following extract from the online help file, [color:blue]Allow User Abort [Off] [color:brown]Go to Layout ["Welcome"] Pause/Resume Script [Duration (seconds) 3] Go to Layout ["Data Entry"] Allow User Abort[Off] Further to that is there a default setting for Allow user abort and if so can it be changed? TIA Phil
comment Posted November 9, 2006 Posted November 9, 2006 It's a typo. It should read: Allow User Abort [Off] Go to Layout ["Welcome"] Pause/Resume Script [Duration (seconds) 3] Go to Layout ["Data Entry"] Allow User Abort[On] # more steps here that the user CAN abort The default setting is to allow the user to abort. AFAIK, it cannot be changed, and turning it off only lasts until the end of current script (and its subscripts) or until turned on again, whichever comes sooner.
Recommended Posts
This topic is 6591 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