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.

How can I type a "backspace" with a script?

Featured Replies

I am creating an on screen keyboard for a touch screen and I can not figure out how to send a command that executes a backspace or a (delete).

I need to navigate forwards, backwards and delete one letter at a time. Any suggestions?

  • Author

I am also having trouble with typing quote marks. How do you define quotes in a script?

You can read the current position of the cursor using the Get( ActiveSelectionStart ) and Get( ActiveSelectionSize ) functions and change it using the companion script step Set Selection. This way you can move back and forth. To delete individual characters you can use the Clear script step.

See also the demo file posted here.

Regarding your second question, see:

Help > Creating a database > Working with formulas and functions > Identifying text constants and special characters in formulas

  • Author

See also the demo file posted here.

Regarding your second question, see:

Help > Creating a database > Working with formulas and functions > Identifying text constants and special characters in formulas

Thanks for your sample file post.

  • Author

You can read the current position of the cursor using the Get( ActiveSelectionStart ) and Get( ActiveSelectionSize ) functions and change it using the companion script step Set Selection. This way you can move back and forth. To delete individual characters you can use the Clear script step.

I have read up on the get functions that you mentioned but I have not had any luck trying implement what you have described.

  • Author

Here is a sample keyboard for a touch screen that illustrates what I am trying to do and where I am getting stuck with the delete and navigation buttons. Any help would be greatly appreciated.

KEYBOARD.zip

I don't know why i'm bothering but to insert a quote mark use """

  • Author

After some sleep the scripts in the posted samples made more sense. I kept getting confused between script functions and calculation function. So much has changed since FM 5.5.

I've just about got it all working. Thanks for everyone's help.

  • Author

You can read the current position of the cursor using the Get( ActiveSelectionStart ) and Get( ActiveSelectionSize ) functions and change it using the companion script step Set Selection. This way you can move back and forth. To delete individual characters you can use the Clear script step.

I've got the navigation working, and I can delete characters one at a time, but I can not keep the "Get ActiveSelection" script step from highlighting characters so new text can be inserted without deleting a character.

  • Author

Check the attached sample.

Thanks very much for the sample.

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.