Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 150,089 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,756 people online right now. Registration is fast and FREE... Join Now!




Who do you trim leading spaces in vb.net

 
Reply to this topicStart new topic

Who do you trim leading spaces in vb.net

ehj4z
6 Jun, 2008 - 06:15 AM
Post #1

New D.I.C Head
*

Joined: 6 Jun, 2008
Posts: 1

How do I trim leading spaces in SSIS script component?
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: Who Do You Trim Leading Spaces In Vb.net
6 Jun, 2008 - 06:45 AM
Post #2

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 9,483



Thanked: 161 times
Dream Kudos: 9075
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
If you're just wanting to trim off spaces before sending it to SQL Server just use the Trim() method, the TrimStart method. For trimming spaces off the end of a string you can use the TrimEnd() method.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 11:57PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month