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.

Separating Data From One Field to Two

Featured Replies

  • Newbies

I've imported an old dbase (DOS) mailing list database into FM5. The file imports fine, but I have one field called "citystate" inherited from the original containing, as you might imagine, both the city and the state. Is there an automated way to separate this data? The FM5 Help menu or printed documentation don't appear to readily address this issue. crazy.gif" border="0

  • Author
  • Newbies

To further clarify how this data appears in the "citystate" field, I think I should note that the "city..." is separated from the "...state" by a comma and space. An example would be: New York, NY. Again, is there a way to separate this into two fields? I'd like the first field to be "city" and the second to be "state". I could then add the comma and space in a layout if I need to make labels or something of that nature.

Thanks for your attention. crazy.gif" border="0

Create this script, run it once, then you can delete it:

Show All Records

Go to Record/Request/Page[First]

Loop

Set Field["city",Left(citystate,(Position(citystate,", ",1,1)-1))]

Set Field["state",Middle(citystate,(Position(citystate,", ",1,1)+2),2)]

Go To Record/Request/Page[Exit After Last, Next]

End Loop

Oh and double check the results to make sure none of the records have any wierd stuff in it.

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.