I have a string that I need to parse out, then I need to use each unique parsed piece as a group.
For example: I want to track which people in my survey watch what stations.
"NBC, ABC, CBS",
(Ted watches all three stations)
"ABC",
(Mary watches ABC)
"ABC, NBC"
(Steve watches ABC, NBC)
I want to parse out into 3 fields
"ABC"
"NBC"
"CBS"
Then I want to group on each one.
"NBC"
(Ted, Steve)
"ABC"
(Ted, Steve, Mary)
"CBS"
(Ted)
In other languages this is an easy process, but I am running into difficulties in Crystal.
Thanks.
-cj
For example: I want to track which people in my survey watch what stations.
"NBC, ABC, CBS",
(Ted watches all three stations)
"ABC",
(Mary watches ABC)
"ABC, NBC"
(Steve watches ABC, NBC)
I want to parse out into 3 fields
"ABC"
"NBC"
"CBS"
Then I want to group on each one.
"NBC"
(Ted, Steve)
"ABC"
(Ted, Steve, Mary)
"CBS"
(Ted)
In other languages this is an easy process, but I am running into difficulties in Crystal.
Thanks.
-cj