Riddle me this Batman.
I need to replace a specific line in a memo field.
I know the line number, so I can do the following:
lcString = MLINE(methods,lnLineNum)
lcString = STRTRAN(lcString,lcExpSought,lcReplacement)
I know that STRTRAN will work on a memo field, but I don't know how many previous occurences of lcExpressionSought there might be.
I suppose I could loop through the field and count them, but I would like it to be a little more glamorous. Is there a way to just stuff lcString back to where it came from?
Please be kind, its early Sunday, and I have a bad case of "last night".![[morning] [morning] [morning]](/data/assets/smilies/morning.gif)
TIA
Ed
Please let me know if the suggestion(s) I provide are helpful to you.
Sometimes you're the windshield... Sometimes you're the bug.
I need to replace a specific line in a memo field.
I know the line number, so I can do the following:
lcString = MLINE(methods,lnLineNum)
lcString = STRTRAN(lcString,lcExpSought,lcReplacement)
I know that STRTRAN will work on a memo field, but I don't know how many previous occurences of lcExpressionSought there might be.
I suppose I could loop through the field and count them, but I would like it to be a little more glamorous. Is there a way to just stuff lcString back to where it came from?
Please be kind, its early Sunday, and I have a bad case of "last night".
![[morning] [morning] [morning]](/data/assets/smilies/morning.gif)
TIA
Ed
Please let me know if the suggestion(s) I provide are helpful to you.
Sometimes you're the windshield... Sometimes you're the bug.
