AnsweredAssumed Answered

Can a script scroll an Edit Box to a specific position?

Question asked by Ward on Feb 24, 2014
Latest reply on Sep 19, 2017 by user19752

I have a text field displayed in an Edit Box. Since this field can have hundreds of lines of text, perhaps even a couple thousand lines, the Edit Box has a a vertical scroll bar.


A user looking for specific text can manually the scroll the Edit Box. But this becomes virtually impossible when there's a LOT of text.


I'd like to add a text search feature at the top of the Edit Box, something analogous to a Find on a browser page. FileMaker provides key components of such a text search:


  • The PatternCount function can determine the number of occurrences of the search string.
  • The Position function can find the locations of these occurrences.
  • A Script Trigger on the search Edit field could even perform search-as-you-type.


Unfortunately, I've not found a way to scroll an Exit Box from a script. Am I missing something obvious? Is there anything in vanilla FileMaker or a third-party plug-in that will help?


-- Ward