Minor programming bug in StringHelper

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Minor programming bug in StringHelper

Post by AbleMods » Sat Dec 15, 2007 5:00 pm

The StringHelper.InitialCase() function bombs if the string has any leading or trailing spaces.
StringHelper.InitialCase(" Hello") bombs
StringHelper.InitialCase("Hello ") bombs

StringHelper.InitialCase(" Hello ".Trim) fixes it

You guys probably already knew that but thought I'd share the info just in case there might be a free Pepsi involved ;)
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Post by Logan Rhodehamel » Thu Dec 20, 2007 9:55 am

I don't think we knew. I posted the bug so we can get it corrected.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Post by AbleMods » Thu Dec 20, 2007 5:41 pm

No problem. I noticed a double-space bombs it too.

I think it's space-intolerate.

I must say though my new friend is AlwaysConvert - wow is that helpful!
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply