2011-01-30, 18:28
Ok, so I know this is probably really basic...
I have a label: ListItem.Label which contains actor name. What I want to accomplish is to break up the components of the name so that I can display the last name differently than the first.
So if the string is: Vinnie Jones, I need an array with 2 entries index0 is Vinnie and index1 is Jones
Or, for Sarah Michelle Gellar, I need an array with 3 entries; index 0 is Sarah, index1 is Michelle, index2 is Gellar.
Is this even possible?
I'm thinking using the substring function, but I can't wrap my head around it.
Thanks!
I have a label: ListItem.Label which contains actor name. What I want to accomplish is to break up the components of the name so that I can display the last name differently than the first.
So if the string is: Vinnie Jones, I need an array with 2 entries index0 is Vinnie and index1 is Jones
Or, for Sarah Michelle Gellar, I need an array with 3 entries; index 0 is Sarah, index1 is Michelle, index2 is Gellar.
Is this even possible?
I'm thinking using the substring function, but I can't wrap my head around it.
Thanks!