Jump to content
Server Maintenance This Week. ×

parsing text field


This topic is 425 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • 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!

Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

This topic is 425 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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