Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
Two things on that piece of code, Dan:
1) Your lower bound on a split array is always 0. So LBound (txtSplit) can be safely replaced with 0, and your script will perform somewhat faster (since no call to an ASP function is necessary.)
2) As far as your comma idea goes, I'm going to do something silly to illustrate a point. The reason I'm doing something silly is because your users will too.
Hello, my name is Adam.
I like cars, boats, and planes.
If you use the comma character as your split point, you'll end up with something like this:
Hello
my name is Adam.
I like cars
boats
and planes.
Which is probably what you don't want.
|