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.

Perform find and check color of text

Featured Replies

Hi

I'm trying to make Filemaker perform a find on text of a specific color, so it can omit the records it finds with text in a given color.

Current script:

----

* [color:red]Show All Records

* [color:red]Enter Find Mode [Pause] [color:brown]//Search text is entered here//

* [color:red]Perform Find

* [color:red]Go To Record/Request/Page [First]

* [color:red]Loop

* [color:green]Go to Field [database::fieldname]

* [color:green]If [Get ( ActiveFieldContents ) = TextColor ( database::fieldname ; RGB ( 0 ; 255 ; 0 ))] [color:brown]//should check if text is green//

* [color:blue]Omit Record

* [color:green]Else

* [color:blue]Go To Record/Request/Page [Next;Exit after Last]

* [color:green]End If

* [color:green]Exit Loop If [Get ( FoundCount ) = "0" ) [color:brown]//To prevent it looping forever, if all records have been omitted//

* [color:red]End Loop

It doesn't check if the color is correct; it just checks if the text is the same.

I want it to check the color.

I can't find any other functions, that compare the color of the text or extract the color information from text.

Help?

Kind Regards

Lord HellFire

'Eternal Life or Your Money Back

Try the GetAsCSS() function. Filemaker ignores style when comparing data. That's a good thing, because otherwise 1 + 1 = 2 would be false when the result is formatted to display in bold.

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.