Tissot Posted December 31, 2007 Posted December 31, 2007 Hi Guys Filemaker doesn’t give me a 301 Error when trying to Insert an Open File, instead it just brings up a Error Box saying: "File is locked or in use". But shouldn’t I be able to stop this with Error Caption Set on and Get(LastError) ? Maybe a Filemaker Bug Thanks Ron
IdealData Posted December 31, 2007 Posted December 31, 2007 (edited) Do you have Files and Records a little confused? Error 301 will result when the RECORD is locked or in use. It does work too. Use the "Open Record" command to initiate the record lock and test for the error after that. When trapping for errors bear in mind that the last error available is only relevant to the last script line executed. If you have another script step after the "Open Record" and it executes successfully then you will lose the error that you tried to trap for. In other words the last error can only be trapped for on the following script line. Edited December 31, 2007 by Guest
Recommended Posts
This topic is 6173 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