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.

parsing text field

Featured Replies

  • Newbies

I have a text field that looks like this:

,Time: 2/26/2023 8:22:29 PM,Station: Buffing Queue,Time: 2/26/2023 8:22:34 PM,Station: Sanding Queue,Time: 2/26/2023 8:22:35 PM,Station: Saw Queue,Time: 2/26/2023 8:22:36 PM,Station: Buffing Queue

any tips on how I parse this and pull out each time?  and calculate how much time has passed between stations?

Thankyou kindly!

The field starts with a comma? Are you sure - and if so, does it always?

 

  • Author
  • Newbies

Yes it does.

Well, that's not a very convenient format to work with. You'd think in 2023 people would come up with something more standard...

Anyway, here's something I've cobbled together very quickly (it's easier to do than to explain how to).

Important: the script depends on the file being set to use US date and time formats. Generally, this is bad practice and should be replaced by parsing out the individual date and time components. But as long as you stay within this limitation, it should work for you.

 

parser.fmp12

  • Author
  • Newbies

Awesome!  thanks kindly!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.