Jump to content

What Error Message do I use??


This topic is 5604 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

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

This topic is 5604 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.