VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Customization
 Removehtmlheaders Problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Steve2507
VP-ASP Expert

590 Posts

Posted - December 04 2009 :  06:57:22  Show Profile  Reply with Quote
I am trying to change the Removehtmlheaders function as at the moment it removes the html coding which is great, but we want it to insert a space where the html code is.

Any ideas anyone:
Function Removehtmlheaders(itemname, CR)
dim workrecord, firstchar, morefields, pos, endpos, length
dim token
workrecord=replace(itemname,"<br />",CR)
pos=1    
morefields = True
Do While morefields = True
   pos=1    
   pos = InStr(pos, workrecord, "<")
   If pos > 0 Then
       endpos = InStr(pos, workrecord, ">")
       If endpos=0 then
            morefields=false 
       else  
         length = endpos - pos + 1
         token = Mid(workrecord, pos, length)
         workrecord=replace(workrecord,token,"")
       end if
     else
        morefields=false
     end if
loop
workrecord = replace(workrecord, """", "'")
Removehtmlheaders=workrecord
end function   



Steve
Sex toys from a UK sex shop including vibrators and dildos.

carfin
VP-ASP Expert

United Kingdom
948 Posts

Posted - December 04 2009 :  07:53:31  Show Profile  Reply with Quote
Hi Steve,

in the line:

workrecord=replace(workrecord,token,"")

add a space (or other character) between the quotation marks.

Regards,

Carrol
www.deanston-electrical.co.uk
Go to Top of Page

Steve2507
VP-ASP Expert

590 Posts

Posted - December 04 2009 :  08:44:19  Show Profile  Reply with Quote
Hi Carrol,

Thank for that, you're a star.



Steve
Sex toys from a UK sex shop including vibrators and dildos.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000