Putting string values into array

  • Thread starter jackster the jackle
  • Start date
J

jackster the jackle

I have a string that contians about 20 names that are all seperated by a
single white space. What is the easiest way to get those 20 names into
an array of 20 elements?

a = "first_name second_name third_name etc"

thanks

jack
 
S

Stefano Crocco

Alle Friday 21 November 2008, jackster the jackle ha scritto:
I have a string that contians about 20 names that are all seperated by a
single white space. What is the easiest way to get those 20 names into
an array of 20 elements?

a = "first_name second_name third_name etc"

thanks

jack

a.split ' '

Stefano
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top