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 a list of numbers

Featured Replies

Hi,

 

This is clean data issue.

I obtain from and old database field, called "num" where the users put the street number or gate number, these 13 values from the index(:

 

 

12
13
14
14 16
14 Y 16
14-16
14-16-18
14,16,18
14y16
15
16
17
17y20
 
and in order to obtain a clean relationship data I have to transform in
 
12
13
14
14¶16
14¶16
14¶16
14¶16¶18
14¶16¶18
14¶16
15
16
17
17¶20
 

As you may imagine I need this kind of data in the child side of the relationship just to see  #14 related issues in one instance and not in 6 different cases. I have been browsing BDunning and FMFunctions with no luck cause I guess that a custom function should fit perfectly. Any suggestions??

 

Thanks in advance,

Hi Jorge,

 

Calculation ( result is text ) with the following:

 

Substitute ( Lower ( YourField ) ;
[ " y " ; ¶ ] ;
[ "y" ; ¶ ] ;
[ "-" ; ¶ ] ;
[ "," ; ¶ ] ;
[ " " ; ¶ ]
)

 

If I've misunderstood your need, let me know. :smile:

  • Author

Hi LaRetta,

 

no you haven´t   :laugh:

 

But the data shown is only a small set of "free text" that after 37 thousand records -18 thousand with data in this field- it is a bit more complicated that your precise calc.

I have all sort of not numeric data inside the field. My approach should be how to filter the numbers but not loosing the value or the word to be understood. 

 

I also have some text data (a few hundred good ones) with "backside", "lower", "bis", "prox", that I will try to save after cleaning numbers. The point as you'll guess is to construct a normalized data field, leaving the old one

 

the calc should, I guess:

 

 

- replace not numeric data with spaces
- trim
- replace the last spaces with ¶

 

If I am misfocused please comment me. 

 

Thanks, LaRetta, 

Ah, well you said, "these 13 values from the index" so I assumed it was an example of each possibility.  Try this (attached) custom function.  I think it will do the job for you.

 

ADDED:  Let us know if you get stuck on the rest of the parsing of the "backside", "lower" etc.  :^)

parse.zip

Edited by LaRetta

  • Author

Hi LaRetta,

 

Thank you very much for this strip CF. It works gorgeously, as asked. 

After setting it up I will deal with the commented exceptions. 

 

Best of all!!

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.