Skip 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.

find and change text color

Featured Replies

Is there any easy way to create a script to find all of one name in a database and change the text color for just that name??

For example, I have a database that gets the names of people from a value list. The names are formatted title case and all black. I want to find all Joe's and change to red color.

could someone tell me how to do this??

I am going through database now and changing each occurence of Joe manually.

Thanks

Larry

FileMaker Version: 6

Platform: Windows 95/98

I don't think FM6 can be automated to do this, but FM7 can.

  • Author

Could someone show me the steps to doing it with ver 7?

I might upgrade.

Thanks

Larry

Theoretically you do this with a simple Find/Replace

Find: <Name>

Replace With: TextColor ( <Name> ; RGB ( 255 ; 0 ; 0 ) )

Though I can't get that to actually work. Maybe the text color feature doesn't work in Find/Replace. Instead you could create a global that will contain your search text, then script the replacement:

Go to Record/Request/Page [ First ]

Loop

Set Field [ MyField, Substitute( MyTable::MyField; MyTable::Search Text; TextColor ( MyTable::Search Text ; RGB ( 255 ; 0 ; 0 ) )) ]

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

End Loop

This will replace the actual field contents with the colors of the search text. You should consider just using a calc field that shows the highlighted color on those layouts that need it, instead of replacing the data.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.