I think that MLINE() purpose is not wordwrapping, it is just to obtain
the lines, like ALINES()
There are lots of examples that work fine with MLINE(), if I need
wordwrapping I don't even think using it.
---
On 21 abr, 13:01, "Olaf Doschke" <olaf.dosc...@[EMAIL PROTECTED]
>
wrote:
> Hi Josh,
>
> well...
> CREATE CURSOR curMemo (mMemo M)
> INSERT INTO curMemo VALUES ("This is a contrived example, but then,
aren't they all?")
> SET MEMOWIDTH TO 19
> ? MLINE(mMemo,1)
> ? MLINE(mMemo,2)
> ? MLINE(mMemo,3)
>
> What Gene says is correct. You get the leading space.
> If you ltrim you will also trim wanted leading space, eg:
>
> Text To lcText noshow
> This is another contrived example, but then, aren't they all?
>
> Here is yet another paragraph, indented with 3 spaces.
> Endtext
> CREATE CURSOR curMemo (mMemo M)
> INSERT INTO curMemo VALUES (lcText)
> SET MEMOWIDTH TO 18
> for i=1 to Memlines(mMemo)
> ? MLINE(mMemo,i)
> endfor i
>
> leads to:
> This is another
> contrived
> example, but then,
> aren't they all?
>
> Here is yet
> another paragraph,
> indented with 3
> spaces.
>
> What's wanted is:
>
> This is another
> contrived
> example, but then,
> aren't they all?
>
> Here is yet
> another paragraph,
> indented with 3
> spaces.
>
> But even that looks bad. Paragraph width is of course
> much too small to make a readable text. Even better
> would be hyphenation and blocktext. In the end it's a
> word processor task to come up with something like
> this:
>
> This is another con-
> trived example, but
> then, aren't they all?
>
> Here is yet another
> paragraph, indented
> with 3 spaces.
>
> I'd still go with word automation for this task.
> It can hyphanate word, have blocktext by increasing
> spacing between words *and* increasing spacing
> between letters, which would work even better for
> example on the second lines of both paragraphs.
>
> Bye, Olaf.


|