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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Split a tokenized string into a variable array

Status
Not open for further replies.

Smarty

Programmer
Apr 12, 2001
191
BE
Hey,

I have the following input of a textarea: "353443;35663;23342;22251". Is it possible to put the numbers into a variable array so that I can itterate over the different numbers (the quantity of numbers is not always 4 but can vary from 2 till 200)

Kind regards,
(not so) Smarty
 

like this?

<%
mystring = &quot;353443;35663;23342;22251&quot;

myarray = Split(mystring, &quot;;&quot;)
%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top