BrianHiatt
Fri Dec 03 10:29:07 CST 2004
David,
Thanks so much. Works great with a minor tweak. Replaced the = with a - on
the lnLength line and stored the value of the field to a variable and then
replace(d) the field with the memo. Could not get TheMemo to = to work.
Brian
"David Frankenbach" wrote:
> Brian,
>
> One more alternative (that's better than all the others (except for what
> George showed is coming in VFP9) *g*)
>
> lnLen = len( TheMemo )
> do while ( substr( TheMemo, lnLen, 1 ) $ " " + chr(13) + chr(10) ) and (
> lnLen > 0 )
> lnLen = lnLen = 1
> enddo
>
> TheMemo = left( TheMemo, lnLen )
>
> it'll remove trailing spaces, and CR or LF regardless of the possible orders
> they can occur in.
>
> --
> df - Microsoft MVP FoxPro
http://www.geocities.com/df_foxpro
>
>
> "Brian Hiatt" <BrianHiatt@discussions.microsoft.com> wrote in message
> news:0F959F94-35DA-423E-8DE3-48CA3D0C9DE3@microsoft.com...
> > Does anyone know how to programatically remove blank lines from the end of
> > a
> > memo field? Sometimes my users will hit return in a memo field after the
> > end
> > of the data and this causes blank lines on reports.
> >
> > I have tried several suggestions found on Google groups archive but no
> > success. Tried all the trim(s) and no luck
>
>
>