Re: Parse a string from field CORRECT EMAIL
am 20.04.2007 07:52:51 von Dave Anderson"Dan Somdahl" wrote:
> 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)
JScript example:
for (; !RS.EOF; RS.MoveNext()) {
var a = RS.Fields("el_text").Value.split(";")
Response.Write("
Response.Write(a.join("
Response.Write("
}
Alternate JScript example:
for (; !RS.EOF; RS.MoveNext())
Response.Write("
VBScript left as an exercise. I suggest you look at these functions:
http://msdn.microsoft.com/library/en-us/script56/html/fb2bbb 28-85bc-42fc-85fb-ccc7da8abe8c.asp
http://msdn.microsoft.com/library/en-us/script56/html/cc2215 24-8f4c-4463-8fa6-578c39a939d4.asp
http://msdn.microsoft.com/library/en-us/script56/html/65e15b 2c-99b6-4f82-88e7-8c657489dd34.asp
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.