From: Cryptographic_ICE@... Date: 2007-09-18T05:45:06+09:00 Subject: Re: Cropping text strings On Sep 17, 3:41 pm, Morton Goldberg wrote: > On Sep 17, 2007, at 3:20 PM, Glen Holcomb wrote: > > > openjob.ProblemDesc[0..49] should do the trick. > > > On 9/17/07, Cryptographic_...@yahoo.com > > wrote: > > >> Hello, > > >> This statement here can return a very long paragraph > >> <%=h openjob.ProblemDesc %> > > >> Is there a way to trim it to say the first 50 characters? In VBScript > >> I would use Left(). (I am working in ruby on rails if that matters) > > As will the following: > > openjob.ProblemDesc.first(50) > > Regards, Morton Thank you it worked great!