Click to See Complete Forum and Search --> : get substrings


sirius
02-18-2003, 10:56 AM
Hi,
I have a delimited string containing various information. This is passed from a form. I need to extrract the indidual items before I insert them into a database.

How??

Thanks

Bullschmidt
02-18-2003, 02:53 PM
Assuming the delimiter is the | character:

strarrayFormat = Split(pstrFormat, "|")

' Loop thru items.
' Start at 1 since 0 is just the format type.
For intItemNum = 1 To UBound(strarrayFormat)
Response.Write strarrayFormat(intItemNum)
Next