truncate string to 10 characters padding with whitespaces if < 10 chars
843829Feb 7 2006 — edited Oct 31 2007Hi im trying to truncate string to 10 characters padding with whitespaces if < 10 chars to give the folowowing results
OK : trimTo10( "Hit" ) your answer is -> "Hit "
OK : trimTo10( "1234567890123" ) your answer is -> "1234567890"
OK : trimTo10( "" ) your answer is -> " "
can anyone give me the correct code to do this? I need to hand this in as coursework V SOON!!