July 31, 200619 yr 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
August 1, 200619 yr 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.
Create an account or sign in to comment