CATEGORIES
How to Use Split function for Parsing String in ASP
Published by: Guest (9/16/2008 1:12:42 PM)
SEP 16 2008
How do i use split function to parse string in asp? I have a long string which i want to split with a delimiter "|" and store the values to an array. How can i use an inbuilt function to achieve this result? If you know an asp function then please help me. Will split function work here?
Most Popular Articles
- HOW TO PUBLISH A PROJECT IN LOCAL IIS OR OWN MACHINE
- Request object error 'ASP 0104 : 80004005' Operation not Allowed
- Remove Carriage Returns and Line Feeds from ASP Page
- Why do I get error WinHttp.WinHttpRequest error '80072ee2' The operation timed out
- How to Find the Time Difference in ASP
How can I Read all the Column Names of a Table using Recordset Object in ASP >>
<< How do I define an ASP array and Redim it Later
COMMENT
Name: admin
dim arr_abc ’declare the array
dim str_abc ’declare the string
str_abc = "a, b, c " ’ variable stores the value in comma separated.
arr_abc = split(str_abc, ", ")
for i=lbound(arr_abc) to ubound(arr_abc)
response.write arr_abc(i)
next