str = replace(str,"[]"," ",1,-1,1) ' replace all [] with spaces
Response.Write "<br><b>String parsed is :</b>"
x=1
do while x < len(str)
h1=Instr(x,str," ",1)
if h1=0 then exit do 'if no spaces or [] then exit loop
tmp = mid(str,x,h1-x) 'parse string where character is found
Response.Write "<br>" & tmp
x = h1+1
loop
'special case for last word in sentence
ending = instrRev(str," ",len(str),1)
if ending then
tmp=mid(str,ending,len(str))
Response.Write "<br>" & tmp
end if
%>
Thank you. I will try this. Here is a sample of what I have before your email. It started failing.
LineRead=TRIM(LineRead)
if left(LineRead,3) ="Tex" then
response.write "<table border='1' cellpadding='0' cellspacing='0' width='650'>"
'LineRead= "Tex" & LineRead
flag_data=1
end if
if flag_data=1 then
'This is used to remove bad values
for i = 1 to 15
LineRead=replace(LineRead, " ", " "
next
LineRead=replace(LineRead," ", "-"
LineRead=replace(LineRead,chr(9), "-"
LineRead=replace(LineRead,"--", "-"
'response.write lineread & "<br>"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.