Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace memo field content
Message
From
16/08/1999 14:43:57
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
16/08/1999 13:12:55
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00254128
Message ID:
00254189
Views:
19
>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform