Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Trimming spaces from wwBusiness object properties

$
0
0
Re: Trimming spaces from wwBusiness object properties
West Wind Client Tools
Re: Trimming spaces from wwBusiness object properties
04/03/2012
11:54:03 AM
3GY0PIE76 Show this entire thread in new window
Gratar Image based on email address
From:
Rick Strahl
To:
Attachments:
None
matt,

i dont think thats the reponsibility of the bus object and we definitely shouldnt muck with your data . sometimes the whitespace is significant (like when doing exact queries). you can switch to varchar fields which strip trailing white space.
+++ rick ---


I hate it that when you scatter a data row to a wwBusiness object, and when there are string values in the table, your properties on the bus obj often have a lot of trailing spaces at the end of their property values. Becuase of this trailing white space from the table, I wind up having to use use Alltrim() ALL OVER THE PLACE!!!

Might you add a new feature to wwBusiness, with a option flag, so that after a Load() it would iterate over all the string properties and do Alltrim() to them.

Is it reasonable to have to bus object framework clean up the BO (trim the whitespace) like this? I mean, are there time when you’d WANT this messy whitespace on the end?

At least by having an option flag, each user of the framework could opt-in to this feature.



Rick Strahl
West Wind Technologies

Making waves on the Web

from Maui, Hawaii


Viewing all articles
Browse latest Browse all 10393

Trending Articles