Picklist - Dissecting Picklist Entries

Hi there!

In our software, The Raiser's Edge, there is a field where you can pick multiple text entries in the one field.  These entries are then exported as a whole unit.  

For example Name1; Name2; Name3; Name4

Is there a way to dissect each into their own fields?  (similar to selecting the delimiters for a csv file).

Any help is greatly appreciated!

cms
rporter45Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
Sure.

Try this

Split({YourField},";")[1]

SPlit will convert the list into an array and you can then access the individual elements.

A formula like this
Name - CreateArray

WhilePrintingRecords;
Global StringVar Array NameList;
NameList := Split({YourField},";");
""

You can then use formulas like this to get the first name

EvaluateAfter({@CreateArray});
Global StringVar Array NameList;
NameList[1]

To avoid issues with an array that has only 1 name
EvaluateAfter({@CreateArray});
Global StringVar Array NameList;
If UBound(NameList) >= 2 then
    NameList[2]
Else
    "No name2"

mlmcc
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rporter45Author Commented:
Hooray!!! I will try this with my most recent request and get back to you!

Thank you,
cms
0
rporter45Author Commented:
Works perfectly!

Thank you very much!
cms
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.