I want to append text I've selected in one field to the end of another field.
I'm using a Mac. The shortcut, "Command Down Arrow" moves the cursor to the end of the field. I'd like to enter this as part of a script step. Is there a way to do this?
and you can use the length function to determine where to put the cursor.
I have a script that will move the cursor to the end of the field. It does not use Command Down Arrow. It use the script trigger OnObjectEnter to fire the script. This will have to be done for each field.
Dropbox - SampleMoveCursorToEnd.fmp12
Set Variable [$ct;Value: Get(ActiveFieldContents)]
Set Variable [$ln;Value: Length($ct)]
Set Selection [Start Position: $ln+1; End Position: $ln]
Thank you. Your sample script will do what I want.
See my reply to "schamblee" whose technique uses the length function you suggested.
The length technique works but in the spirit of learning FileMaker, is it not possible to use the Code function to enter a keyboard sequence such as "Command (or Control) Down Arrow"?
There is no such feature in FileMaker.
Retrieving data ...