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.

Get(ActiveSelectionStart)

Featured Replies

Has anyone been able to use the Get(ActiveSelectionStart)function with FileMaker Pro 9.03? In theory I should be able to have two field (one being the calculation) and another a text field. When I click into the text field and highlight a selection of text I should have a number showing me my start point in the calculation field?

No, in theory you can't because the calculation field will calculate only when exit from the first field ( and then there is NO active selection )

But you can use ToolTip.

BTW: which is the need for this ?

  • Author

My initial problem is I have a scrolling text field that sometimes contains more data than the field size. The user needs to highlight a portion of the text to copy it to another field, but when that happens the scrolling field jumps back to the top and the user loses his place. My thought was that if I could capture the selection start through a script then I could also set the cursor back using the Set Selection script step to the correct possition.

No need of that calculation field.

You'll need to create a button with only this step:

Set field [ anotherField ; Middle ( Get ( ActiveFieldContents ) ; Get ( ActiveSelectionStart ) ; Get ( ActiveSelectionSize ) ) ]

The user will select a text in the first field ( or even in another ) and press the button; the first field remains in focus where it was ( no more jumps back to the top ).

If you wish to copy more than a portion of the first field into the second one, change the step to:

Set field [ anotherField ; Trim ( anotherField & " " & Middle ( Get ( ActiveFieldContents ) ; Get ( ActiveSelectionStart ) ; Get ( ActiveSelectionSize ) ) ) ]

  • Author

THANK YOU! THANK YOU! THANK YOU! This is exactly what I needed!

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.