Skip to main content
Participant
March 17, 2012
Question

How do I separate this csv variable into individual variables?

  • March 17, 2012
  • 2 replies
  • 605 views

The main variable being passed is #whoplayer#.

I need to be able to separate them into individual variables but I can't figure it out.  Sometimes the variable passed is not separated by commas (only 1 items passed) (1245) other times it's multiple:   (1245,1246,1250)

Please help.

This topic has been closed for replies.

2 replies

Inspiring
March 19, 2012

Check out cflib.org, there are a couple of tags there for handling csv data.  Was not clear whether you meant actual CSV formatted data, or just data elements separated by commas.  If the latter, then Dan's CFLOOP colution also works.  If the former, then there are a few more variations that CFLOOP won't handle so easily, but those ahve been solved by the cflib.org tags.

-reed

Inspiring
March 17, 2012

google "cfloop".  When you find the documentation from adobe, go to the part about looping through a list.