Microsoft
Software
Hardware
Network
Question : How do you TRIM n characters from a string from the right.
I should trim last name of a employee to 18 characters even though if I get a 30 character last name from the database.
What is the best way to do that ? any help would be greatly appreciated.
Thanks
Answer : How do you TRIM n characters from a string from the right.
That's actually among the best ways to do it. You can remove the PadRight from the Substring.PadRight because you're already guaranteed 18 length.
Random Solutions
Changing font of one datamember value in a dropdown listbox
Problems with lotus pop3
Large .LDF file
Find driver
EMC DPA (Data Protectiopn Advisor) Report
C#.NET authenticate computer account against Active Directory
refresh ribbon any time a worksheet is activated
Cannot change display settings
Retain selected value from dynamic drop down php
My option and command keys are switched on my mac