Developing Matt

My Technical Journal

String.Trim

leave a comment »

When trim doesn’t trim what you think it should trim
When you’ve tried and you’ve tested and your face has gone grim
And you’ve pulled out your hair from your head to your chin
Try to trim on the string; just add trim to the end

String.Trim doesn’t care if white spaces or tabs
String.Trim doesn’t care if it’s a tree or your abs
Just apply it liberally where trimming’s a must
And watch the excess fall to the dust.

‘example of trim
dim sValue as string = ”     some string this is.”
sValue = (sValue.Trim)

Written by matt

April 3, 2008 at 1:22 pm

Posted in Asp.net, poetry, VB.net

Tagged with

Leave a comment