spb Posted November 25, 2005 Posted November 25, 2005 I'm not sure if this is the right forum for this, but as the problem hapens during a script run, I might as well. There are times in a served environment (FM6) when I need to run some replace scripts on a set of records. When this occurs while another using is on one of the records, I get a "cannot modify" halt. Somewhere I ran across a technique for trapping this error and saving the info as to which record was being hung, then proceeding with the rest of the script. Afterward, either the record being locked could be found (key field stored in a global?) or the script would rerun on just the locked record. I searched the forum every which way I could think of and drew a blank. Any pointers? Steve Brown
IdealData Posted November 26, 2005 Posted November 26, 2005 To trap for errors in scripts you must turn on error trapping when you need it with "Set Error Capture" step. Any errors generated only exist to the next script step so you must trap for it immediately using the "Status(CurrentError)" function. You can find the list of error codes in the FMP help system under "Status(CurrentError)"
Recommended Posts
This topic is 6939 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