Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking 2 different scripts in FM 8 1

Status
Not open for further replies.

th201

Technical User
Dec 15, 2003
39
US
I want to link 2 scripts together only when the first script (which is a specified find) reveals that there are no matches. Is there any other way other than adding a calculation using the "if" option? Any advice would be helpful.
 
One way would in your script

Set Error Capture [On]
Perform Find[]
If [Get(LastError)=401]
Perform Script [Script 2]
exit script
end if

401 is the error code when no records match the request.

Hope That Helps
John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top