raingirl Posted July 31, 2006 Share Posted July 31, 2006 I am encountering a serious problem and I cannot find which error message to use: I have scripted record creation for some of my tables by overriding the menus. However, if I am defining fields in that table and a user runs the script that creates a record in that table, it gives them a error message....does not create the record but continues on as usual with the script. What error function do I use to trap for this so I can immediately stop the script from continuing? Thanks much, Marcelle Link to comment Share on other sites More sharing options...
Lee Smith Posted July 31, 2006 Share Posted July 31, 2006 You should not be working on the files live. Link to comment Share on other sites More sharing options...
IdealData Posted August 1, 2006 Share Posted August 1, 2006 Good advice Lee, however... The script needs a Set Error Capture [ON] statement, typically at the beginning, and you need a field to hold the trapped error to investigate with. Here's an outline Set Error Capture [On] . . New Record/Request Set Field [error_field; Get (LastError)) . . Notice that the error trap must exist IMMEDIATELY after the script step your are trapping for. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6472 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