kenneth2k1 Posted July 24, 2002 Posted July 24, 2002 Hello all! My app contains three files: A prospect file, producer file, and a help file. The prospect file is the main file. Only in this file do I have a script that runs at closing that clears a variety of fields ( these fields are flags for re-printing, and are cleared when the app is closed so that the next time the app is opened and the print script is executed those letters dont print again). It works fine (a bit of a pause when there are thousands of records, but its not bad), but I was in the producer file, and I dont think that it ran because the app closed quite fast. Do I have to link each file to that external script in case the app is closed in a file besides the prospect (main) file? Know what Im saying? Make sense? Thanks for the input, all!!! <<GETTING READY FOR FOOTBALL SEASON>> (that's american football, for all you euro soccer ppl!) Ken
Mike D. Posted July 24, 2002 Posted July 24, 2002 In the apps I've developed, I always include an exit script in the main file that calls a script in each file to close it and then the last line in the main script quits the application. For one particular customer, I also put an Exit button on the main page that calls the script. Just my two cents, Mike
kenneth2k1 Posted July 24, 2002 Author Posted July 24, 2002 Thanks for the reply, but my question still stands. Perhaps I should elaborate. This is a runtime, and they might close the window (thereby closing the app) from a file besides the main file. The script to clear print flag fields resides only in the main file, and does not appear (I don't think) to run when the app is closed from one of the secondary files. This is my question: do I have to make a script in every file that calls that exit script in the main file and make that script operate on closing in the event that the app window is closed in a file OTHER THAN THE MAIN FILE? I think a button triggering a script to start an exit process is ok, but presents a flaw because the app can be closed by closing the window. Therefore, I have the script set up to run upon closing the app window. Thanks Ken
Vaughan Posted July 25, 2002 Posted July 25, 2002 Can't you just make the clearing script a shutdown script? It'll run whenever the file closes, no matter what.
kenneth2k1 Posted July 25, 2002 Author Posted July 25, 2002 Hey Vaughan, Yeah, that's what I have it set as. But it appeared that it did not go when I was in a related file and closed. So I was wondering if I had to be in the file the closing script was in when the app is closed. However, I tried a similar dummy setup and it worked. Besides, it logically follows that regardless what file you are in when the app closes, the script will run because that file closes also. So please excuse my temporary (sometimes extended) stupidity. Ken
Recommended Posts
This topic is 8162 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