mikemck7
Technical User
- Dec 17, 2003
- 38
I'm designing reports in VFP8 using data contained in several large tables. Some of the data has to be parsed and extracted from memo fields.
Numerous records contain leading and trailing carriage returns causing MEMLINES() to return misleading results. Others contain nothing but carriage returns thereby returning .F. when tested for content with EMPTY().
I've been toying around with something I call ALLTRIMCR() but haven't gotten it quite right. I want it to get rid of all leading and trailing carriage returns in a manner similar to the way ALLTRIM() works with spaces. Suggestions welcome.
Mike
Numerous records contain leading and trailing carriage returns causing MEMLINES() to return misleading results. Others contain nothing but carriage returns thereby returning .F. when tested for content with EMPTY().
I've been toying around with something I call ALLTRIMCR() but haven't gotten it quite right. I want it to get rid of all leading and trailing carriage returns in a manner similar to the way ALLTRIM() works with spaces. Suggestions welcome.
Mike