Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple parsing of an array based on delimiter

Status
Not open for further replies.
Jan 11, 2007
51
0
0
Hello,

I have a string like this:


89|23|53|24|29|73

I'd like to put that string into an array list (or array) without writing a function. Is there some array parsing function that will populate an array automatically?

Thanks,

-- jq
 
Sorry, I forgot ...

yourstringarrayname = yourstringname.Split("|")


Hope this helps.

[vampire][bat]
 
Oh yeah! BTW - it should be:

Code:
 yourstringname.Split('|')

Tank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top