On Mon, Aug 4, 2008 at 22:50, MB Software Solutions General Account
<[EMAIL PROTECTED]> wrote:
> We've got a scenario where a 3rd party has polluted our memo fields, and
> I'd like to write a cleanup that takes the value of the memo field and
> does a STRTRAN to get rid of garbage. Straight forward enough, right?
> No, VFP is throwing an error saying "String is too long to fit." So I
> check the VFP system capacities and sure enough, that's the magic number
> (16777184).
You got some good advice elsewhere in the thread, but to answer your question:
CREATE CURSOR crsrTest (mField M)
INSERT INTO crsrTest VALUES (REPLICATE("ABCD"+CHR(13)+CHR(10), 25))
lnLineCount = MEMLINES(mField)
_MLINE = 0
FOR i = 1 TO lnLineCount
?STRTRAN(MLINE(mField, 1, _MLINE), "BC", "ZY")
ENDFOR
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.