Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Splitting value list into single records


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

Recommended Posts

  • Newbies
Posted

Thanks for any advice you can provide.

I have a table of tour operators and the parks they can operate in: TourOperator = text, Parks = ValueList. The result is each tour operator record has a multivalued list of parks separated by carriage returns .

TourOperator1 ...... Park1Park2Park3

TourOperator2 ...... Park1Park2

I need to find a way to split the multivalued list into single records:

TourOperator1 ...... Park1

TourOperator1 ...... Park2

TourOperator1 ...... Park3

TourOperator2 ...... Park1

TourOperator2 ...... Park2

It doesn't seem too difficult at first glance, and I've made minor progress with a customised script, but after searching these forums I couldn't find any solutions so I'd appreciate any help.

Thanks :

Posted

You will need to write a script to loop through the records and parse out the info. This was a quick and dirty loop. Not really elegant but should do the job.

tour.zip

  • Newbies
Posted

Fantastic! Thanks Mr Vodka you've just saved us a lot of time and heartache. I adopted your script to my tables and it worked fine :)

This topic is 6520 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.