View Single Post
  #4 (permalink)  
Old June 8th, 2003, 09:59 PM
Hal Levy Hal Levy is offline
Friend of Wrox
Points: 3,489, Level: 24
Points: 3,489, Level: 24 Points: 3,489, Level: 24 Points: 3,489, Level: 24
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Central, NJ, USA.
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I think I understand... But.. The way your going about it isn't going to work.

There are two problems

1. Your string isn't in quotes...
2. The way you wrote this, your saying strip out everything that isn't HTML.

If your trying to strip HTML, and want to use this IF statement and you know that "<td bgcolor" will always start it then write this:

If left(a, 11) = "<td bgcolor" then a = ""

This takes the string you get back from the file and set your variable to an empty string.

That said- I would use a routine like This one to do what your trying.


Hal Levy
Daddyshome, LLC