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
Getting the row number of a record
RSH client for windows 2008 r2
Crystal reports how to insert page break dynamically
How do I print to a CString?
Stringtopostnet function not working in Crystal viewer 2008 ---
Possible Virus Infection - Can not connect to Internet, Max TCP connections reached.
PHP, ASP, Moneris
Simple Insert Statement very slow
XSLT Parsing pairs of xml tags
How to pause a process execution in C++