Cryptographic_ICE
9/17/2007 8:44:00 PM
On Sep 17, 3:41 pm, Morton Goldberg <m_goldb...@ameritech.net> 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
> > <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!