>How to replace the contents of a specific line from the memo field?
>
>Thanks!
Well, it can be done, something like this:
lcOneLine=mline(memofield, nLineNo)
replace memofield with strtran(memofield, lcOneLine, lcNewLine)
I've supposed a couple of things here:
- you have the new content of the line in lcNewLine
- you have the ordinal number of the line in nLineNo
- the text in the line doesn't repeat in the memo (we should add more parameters in the StrTran then)
- the mline() function gives you exactly your lines - i.e. the Set("Memo") is set large enough so it doesn't cause word wrapping to interfere with your line counting.