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.

How to take out spaces

Featured Replies

Hi Guys,

I have an "ItemNumber" field and some of the number & letters were entered with spaces. Like "P 335 H2" instead of "P335H2" and the spaces are not always in the same places.

How can I take out all spaces?

Thanks for your help,

Milo

Substitute( ItemNumber ; " " ; "" )

  • Author

Hi Genx and how are you doing?

I see the "Substitute( ItemNbr ; " " ; "" )" but where do I put it? In the calculated Value of the field? If so what do I do with the following calc that's already there?

"Case(IsEmpty(ItemNbr); TextColor ( "Enter Info..." ; RGB ( 127 ; 127 ; 127 ) ); TextColor ( ItemNbr ; RGB ( 0 ; 0 ; 0 ) ))"

Also, my "ItemNumber" field is a Number field. When I use "Substitute( ItemNbr ; " " ; "" )" will that also strip out the letters that are in the ItemNbr field?

Milo

1) To get all future records showing right, change the calc to:

Case(IsEmpty(ItemNbr); TextColor ( "Enter Info..." ; RGB ( 127 ; 127 ; 127 ) ); TextColor ( [color:red]Substitute(ItemNbr [color:red]; " "; "") ; RGB ( 0 ; 0 ; 0 ) ))

2) To get all the current records correct, Show All Records and Replace Field Contents with GenX's calc.

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.