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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Who Viewed the Topic

    1 member has viewed this topic:
  • Create New...

Important Information

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