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!

Split in a Split 1

Status
Not open for further replies.

TommyB44

Technical User
Jun 16, 2005
76
GB
Hi All,

So far I have:
Code:
dim addresses
dim a

'List of names and addreses, (#FirstName~LastName~HouseNumber~StreetName~PhoneNumber), more to 'add.

addresses="#Stephen~Thomas~61~Rasemary Hill RD~(0121)225888#Mark~Davis~34~Lovatt Close~(07900)321049"

a=split(addresses,"#")
for i=0 to UBound(a)
response.write a(i) & "<tr>"
next

This is making my first split but I now want to make the second split at every "~" character, I was wondering if I could split it within the first split?, If you get what I mean, So I can add the "<td>"'s.
Thanks.
 
That should probably be:
Document.write(a(i) & "<tr>")

I've been using it in asp lately.
 
Sure, just split inside the for statement:
Code:
a = split(addresses,"#")
for i = 0 to ubound(a)
     b = split(a,"~")
     for z = 0 to ubound(b)
          [i]blahblahblah[/i]
     next z
next i

Maybe this world is another planet’s Hell.
Aldous Huxley

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top