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.

Adding a calculated number of spaces

Featured Replies

I'm trying to figure out a way to add a calculated number of spaces before specified text in a text field. Basically what I have is a calculation field that returns a number result (5 for example). What I need is a calculation/text field that will see the result from the first field and add 5 spaces in front of the text in the field. I'm sure there is a way but I can't figure out a way to tell the computer to add 5 spaces without actually doing " ".

Any help you can give will be much appreciated.

Yes, you sure can. Let's assume your number field is num. And you have a text field you wish to pad. Usually the pad is leading zeros. But if you wish to use this for export (for example), padding with spaces is used quite often.

Right ( "     " & num ; 6 )

I hope the spaces between the quotes are obvious. There are 5.

LaRetta

  • Author

You are awesome!! Thank you

" You are awesome!!"

Uh. No.

There is one very very small detail but which is extremely important here which I forgot to mention - my favorite FM foible - in the calculation box lower checkbox, "Do Not Evaluate if All Referenced Fields are Empty." If you don't uncheck this and number is blank, it won't pad. :blush2:

Me and this checkbox have a long-standing love/hate relationship ...

L

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.