Think of something that you wish Authorware could do but it doesn't?  Let the our good friends at Macromedia know via the wishlist.

Please let us know if you find any of the materials on this site inappropriate or offensive. Please include the url and why the material should be reviewed.

Comments and questions about the site are also welcome. Please no Authorware questions, use the AWARE list.


1089 - How do I convert a comma-delimited string to a linear list?

by - Joe Ganci

I have searched the archives and have not found what I believe should be possible. I have the following:

StateList := "DE,IN,IA,NY,NC"

I would like to convert the StateList variable to a sorted List. I have found that I could convert the StateList variable to a return-delimited string, set up a repeat loop, set the contents of the list, then sort the list. However, I was hoping there might be an easier way.

Looks horrible, but I just tried this and it works:

StateList := "DE,IN,IA,NY,NC"
states := List("[\""^Replace(",","\",\"",StateList)^"\"]")

There are 0 reviews
Add your review