Jump to content
Sign in to follow this  
kjenning

Finding OUTSIDE of a Range from in a Script

Recommended Posts

Hi...

I have a table where Field1 contains both positive and negative values. I have a need to search for a set of records where Field1's values are outside of a specific range, ex: -3 to +5. As the range doesn't fall evenly on a number line, I cannot use the ABS[] value and just seach for values greater than X.

Does anyone know of a way to execute a find (from within a script) to retrieve a set of records where Field1 is less than -3, and greater than +5? Is there a way to combine a NOT operator with the range span operator (...) from within a FIND[] step, from within a script?

Thanks in advance,

-KJ

Share this post


Link to post
Share on other sites

Use the Omit Record step immediately after setting up the Find criteria. This is just like checking the Omit box in Find mode. For example:

Enter Find Mode []

Insert Text [select,numberField,"-3...5"]

Omit Record

Perform Find []

You could also find the range, then show omitted records, but it's a bit slower:

Enter Find Mode []

Insert Text [select,numberField,"-3...5"]

Perform Find []

Show Omitted

Copy_and_Paste_r2.zip

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.

Guest
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  

×
×
  • Create New...

Important Information

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