Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extra space on Memolines
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00675123
Message ID:
00675129
Vues:
20
The ALINES function will return your text in an array one line per row.
The 3th param will even trim the lines for you if you wish.

From the array it will be easy to perform your changes and write back the text to the memo...



>Dear Foxperts,
>
>Working in VFP7 - the question is about modifying text in a memo field.
>I have text imported to a memofield (that was extracted from old .PRG files with a nifty combination of FILETOSTR() and STREXTRACT(), thanks to some helpful UT-arians).
>
>The constraints of the old DOS program and printer allowed 96 characters per line for this text; now it needs to fit in 88 characters. Therefore I thought SUBSTR(RTRIM(mylineoftext),4) when EMPTY(LEFT(mylineoftext,4)). That would work if each line of text were available as a field or memvar; this text is a memofield or one long string (interspersed with CHR(13)'s) in a memvar.
>
>What's the best way of removing 4 spaces from the beginning of each line in a memofield? I hope it does not involve manual editing.....
>
>TIA,
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform