logo       

Elegant place to TRIM strings: msg#00045

Subject: Elegant place to TRIM strings
SITUATION:
I'm building an N-Tier app with both Win Forms and Web front ends.
 
In my middle tier, I hold my classes
 
In the DAL I call SQL Server.  Some data will be imported into SQL Server 
directly over time.
 
ELEGANT place to TRIM strings:
I am starting to move my TRIMS to my classes in the Sets...
 
Public Property Note() As String
  Get

        Return m_Note
   End Get
  Set(byVal Value as string)
         m_Note = Value.Trim
  End Set
End Property
 
QUESTION:
Is anyone else doing anything like this, and what are your thoughts?  I'd like 
to do my TRIMS in an elegant way.  I could do them on the Front Ends which is 
traditional.  Not all data that gets inot our database will be from the Front 
End.  Some will be IMPORTED from an HP3000.
 
Thanks in Advance
Elizabeth Gee
Information Architect
http://www.nwtd.com


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/dpFolB/TM
--------------------------------------------------------------------~-> 

 


<Prev in Thread] Current Thread [Next in Thread>