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.

Does Extend fuction work for text fields?

Featured Replies

Hi,

I have a field called numbers which contains a set of numbers in text format.

145

156

233

455

What I would like to do is add a prefix and an underscore to each of the numbers, i.e. 2_

so the data reads as follows

2_145

2_156

2_233

2_455

I thought I could use the Extend function, but I guess that really reserved for calculations. Is there any one with some advice on how I can do this? Im using FMP6

Thanks all

Jalz

Are each of these numbers in different records, or is it a list as you have shown, separated by returns (spaces, tabs)

Lee

  • Author

Hi Lee,

They are not in different records. Those values are in one record - seperated by a carriage return, in a Text field. I have 800 records with similar data in that field, so I thought there must be a calc I can apply to a new field to give me the result im looking for.

Thanks

The Extend() function is for use with repeating fields. You could try something like:

Let (

temp = Substitute (

  • Author

Thanks Comment,

That works a treat! If I wated to change 2_, to a field name, could I insert the fieldname where 2_ exists?

Short answer is Yes, this can be done.

The best way to learn FileMaker is to fool around with things like this.

Why don't you try to modify the calculation, and if you can't figure it out, post back.

Lee

  • Author

Thanks for your help Guys,

Yep figured it out, on my first attempt smile.gif. Dont know why i'd posted the second question....guess i thought it'd be harder before i attempted it. Dont quite understand fully Comments forumula, but I guess I need to break it down and see what each command is doing.

Cheers

Jalz

I thought you might be able to.

smile.gif

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.