Jump to content

More than 1 find in a script?


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

Recommended Posts

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

e.g

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.

Link to comment
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
Link to comment
Share on other sites

This topic is 6171 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
×
×
  • Create New...

Important Information

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