Skip navigation
daktws
Currently Being Moderated

How do I separate this csv variable into individual variables?

Mar 17, 2012 2:54 PM

Tags: #csv

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.

 
Replies
  • Currently Being Moderated
    Mar 17, 2012 3:54 PM   in reply to daktws

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

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 19, 2012 5:21 AM   in reply to daktws

    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

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points