raingirl Posted July 31, 2006 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
IdealData Posted August 1, 2006 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.
Recommended Posts
This topic is 6691 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