17-06-2006, 12:54 PM
LenB, just divide the result by two to get true result
If you want it even faster multiple by 0.5, since multiplication is faster then division.
Or course, I dont actually know if lenB * 0.5 is still faster then len but at least lenB is still faster if your just checking if a space is blank
Oh yea, heres a good site that'll give you ideas on how to optimize your code to the max
http://www.aivosto.com/vbtips/stringopt.html
If you want it even faster multiple by 0.5, since multiplication is faster then division.
Or course, I dont actually know if lenB * 0.5 is still faster then len but at least lenB is still faster if your just checking if a space is blank
Oh yea, heres a good site that'll give you ideas on how to optimize your code to the max
http://www.aivosto.com/vbtips/stringopt.html