Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Hi, is there way that I can find the first five characters in a field that matches WITHOUT putting in any words or letters. I was think something like wildcards. So in the example below, I would get all Disable and all Molly records because they match.

Example:

Name

Disable smiles

Disable me

Jack Daniels

Joe Moe

Molly Brown

Molly Black

Posted

Try this Script:

Show all records

Go to Record/Request/Page(first)

Loop

If("Length (YOURFILEFIELD)<5")

Omit Record

Else

Go to Record/Request/Page [Exit after last, Next]

End If

End Loop

Posted

Hi

the Gar script can't do what you asked for, because it finds all the records with more than 4 chars in the name, even if they don't match.

So give a try to the attached file :P

First5.zip

Posted

Hi

as you had tried, my example file works...

but I noticed that it finds empty name field too.

This can be of some utility, but if you don't want them, go to change the sixth row of the script "Find" to this:

If[status(CurrentPortalRow )[color:red]<= 1]

Posted

Raybaudi

You are absolutely right, I stand corrected.

I concentrated on the "more than 5" part and missed the matching completely.

I looked at your example. Cool! I rarely do any portal work and now I see some of what I have been missing.

This topic is 6988 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.