Hi, I am new to ASP but have what should be a fairly simple task that I
can't figure out.
I need to parse a string from a single, semi-colon delimited, 60 character
field (el_text) in a recordset and display the results in a table on a
webpage (ASP)
I can retrieve the recordset from the database and display the field data
results in rows of a table but have the entire 60 character string in one
cell. I need to break that string apart and put each semi-colon delimited
value in it's own cell. Then move to the next record and do the same thing
in the next row of the table. - and so on
I'm using ASP, VB Script with DMSII Database and OLEDB
Does anyone have some code examples on how to break this field apart and
then arrange the data into an html table on a webpage?
Adrienne Boswell - 20 Apr 2007 04:50 GMT
> Hi, I am new to ASP but have what should be a fairly simple task that
> I can't figure out.
[quoted text clipped - 13 lines]
> Does anyone have some code examples on how to break this field apart
> and then arrange the data into an html table on a webpage?
While not rs.EOF
response.write "<tr>"
tdarr = split(rs("field"),";")
for i = 0 to ubound(tdarr)
response.write "<td>" & tdarr(i) & "</td>"
next
response.write "</tr>"
rs.Movenext
wend

Signature
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share