Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q5824 I have string values that look like this: "name, age, height" - How do I parse these so I can reference each value?

You are here: irt.org | FAQ | ASP | Q5824 [ previous next ]

Use the VBScript split funtion to return an array of the values separated by whatever character you specify.

<%

Dim someArray, myText

myText ="Jed, 21, 178cm"

someArray = split(myText, ",")

' someArray(0) = "Jed"
' someArray(1) = 21
' someArray(2) = "178cm"

%>

Feedback on 'Q5824 I have string values that look like this: "name, age, height" - How do I parse these so I can reference each value?'

©2018 Martin Webb