December 21, 200124 yr I believe that Status(CurrentError) returns 1 when a user cancels an action. So far the only FileMaker dialog that I've encountered that this doesn't work with is the Ask User to Disconnect dialog that appears when you switch MultiUser to Off. At any rate, I just did a preliminary test. Place If...End If immediately after your Import Records script step and test for CurrentError=1. Note: if Allow User Abort is On, then if the user aborts the import FileMaker will treat it as if the user has cancelled the script.
December 21, 200124 yr Sweet success! 15 minutes and my work term is over and then it's back into school (I'm a co-op student) Wasn't really expecting an answer but hey I tried and thanks to you it paid off Merry Christmas and all that other jazz
December 22, 200124 yr Author From one former co-op student to another, congratulations and I'm happy to have been able to help (pardon all those h's). Happy holidays!
December 22, 200124 yr I know when there's no records from a find, you can use Status(CurrentError) = 401 and then do what you want from there. But what about for Exporting and Importing? Meaning, if you have a script with an Import or Export command in the middle of it, but during the Import/Export the user cancels (during where they are setting up the layout order) how can I catch this error and stop the script there instead of continuing it?
Create an account or sign in to comment