Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace memo field content
Message
De
16/08/1999 14:43:57
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
16/08/1999 13:12:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00254128
Message ID:
00254189
Vues:
20
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform