Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Script to show all entries beginning with a particular letter

Featured Replies

  • Newbies

I am trying to write a script that will show all records that begin with ''a', all that begin with 'b', all that begin with 'c' etc. Each letter of the alphabet would have its own separate script (or all of them combined into one, if possible)

This searches cell 'Name' of every record for instances where the leading character is 'A' or 'a':

Sort [Restore,No dialog]

Show All Records

Go to Record/Request/Page [First]

Allow User Abort [On]

Loop

if ["Left(Name,1)="A""]

#Show this record The problem is here, I am looping through each record, and it determines the appropriate records alright, but how do I get it to display all of those records and only those records.

End If

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

End Loop

Go to Layout ["Table"]

If anyone can help me with this, I would really appreciate it. I know my way around FileMaker, but I am hardly accomplished. Most of my scripts rely heavily on my knowledge of AppleScript, to give you an idea. I am using FileMaker 6 on MacOS 10.6.8 (Snow Leopard)

Why don't you use Perform Find?

  • Author
  • Newbies

I have no idea how I could use Perform Find to show all of the records I want to display. I can see how I could use it to show all records that contain the letter a (in any position), but I want to display all records where the text in the cell I named "Name" begins with the letter 'a' or the letter 'b' etc.

How would I go about that, given that I am using FM6 ?

perform find - enter the letter a, b or whatever into the criteria field and the script will just find records starting with that letter. no looping needed

given that I am using FM6 ?

Slightly off-topic: you are wasting your time learning version 6. There was a BIG change starting with version 7 and you will have a lot of unlearning to do when you upgrade.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.