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.

Featured Replies

someone gave me a DB that had a list of furniture items. Trouble is they are all in one field and separated by "returns".

Any nifty ways to separate them into separate records? so can bring them back in as a portal.

thanks

Loop

Exit Loop If [ IsEmpty(gList) ]

New Record / Request

SetField [ ItemName, Left(gList, Position(gList, "P", 1, 1)-1) ]

# any other field settings in the new furniture item record

SetField [ gList, Right(gList, Length(gList) - Position(gList, "P", 1, 1)) ]

End Loop

where "P" is the paragraph symbol in quotes.

The principle behind the solution Brian has suggested will work fine if you have a single set of entries in a global field.

If, as I suspect may be the case, you have a group of entries in a text field on each record, then you are going to need a slightly more complex solution which passes through all the records, expanding each in turn, until all the values from all the records have been separated.

The principle is essentially that of expanding data arrays, since the text you are dealing with is actually an array (albeit separated by a carriage return rather than the various other delimiters sometimes used).

I suggest that to do this, you might be interested to take a look at an 'Array Expander' example file which I've posted to my web site. The URL to download it from is:

http://www.nightwing.com.au/FileMaker/demos/ArrayExpander.zip

It is a free unlocked demo, which illustrates a scripting approach to the expansion of arrays. The example in the file uses numeric data which is pipe delimited, but exactly the same principle can be used to 'expand' text arrays which are 'CR delimited', so you will readily be able to adapt it to your purposes if you wish.

  • Author

Thanks Ray- That is impressive

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.