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,
Randy Bosma
VFP - Because life is too short to code in something else...