Jump to content
Sign in to follow this  
John Chamberlain

More than 1 find in a script?

Recommended Posts

Is it posssible to have more than 1 Perform Find command in a single script?


Peform Find (look for a field match)

do some processing

Peform Find (look for a differnt field match)

do some different processing

I could really simplify a bunch of things, if this is possible.

Any help will be appreciated.

Share this post

Link to post
Share on other sites

In FM6 and earlier, each script can only store one set of find criteria in Enter Find Mode[] or Perform Find[]. However, you can use those steps without the criteria stored, and use Set Field[] to insert your own criteria:


Enter Find Mode[]

Set Field [ field ; "value1" ]

Set Error Capture [ On ]

Perform Find []


Enter Find Mode []

Set Field [ field ; "value2" ]

Perform Find []


In FM7/8, a script can store multiple criteria in different Find steps, but I still find it easier to write and debug if the criteria is explicitly entered in separate Set Field[] steps.

Edited by Guest

Share this post

Link to post
Share on other sites

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
Sign in to follow this  


Important Information

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