Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Xbase Fox > Re: Mine is Bet...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 6 Topic 758 of 861
Post > Topic >>

Re: Mine is Better Than mline()

by "Olaf Doschke" <olaf.doschke@[EMAIL PROTECTED] > Apr 21, 2007 at 01:01 PM

This is a multi-part message in MIME format.

------=_NextPart_000_003E_01C78415.1FD45FE0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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=3D1 to Memlines(mMemo)
? MLINE(mMemo,i)
endfor i

leads to:
   This is another
 contrived=20
example, but then,
 aren't they all?

   Here is yet=20
another paragraph,
 indented with 3=20
spaces.

What's wanted is:

   This is another
contrived=20
example, but then,
aren't they all?

   Here is yet=20
another paragraph,
indented with 3=20
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=20
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.
------=_NextPart_000_003E_01C78415.1FD45FE0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16397" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3D"Courier New" size=3D2>Hi Josh,</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>well...</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>CREATE CURSOR curMemo (mMemo =
M)<BR>INSERT=20
INTO curMemo VALUES ("This is a contrived example, but then, aren't they =

all?")<BR>SET MEMOWIDTH TO 19<BR>? MLINE(mMemo,1)<BR>? =
MLINE(mMemo,2)<BR>?=20
MLINE(mMemo,3)<BR></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>What Gene says is correct. You =
get the=20
leading space.</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>If you ltrim you will also trim =
wanted=20
leading space, eg:</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Text To lcText =
noshow<BR>&nbsp;&nbsp; This=20
is another contrived example, but then, aren't they =
all?<BR></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>&nbsp;&nbsp; Here is yet =
another paragraph,=20
indented with 3 spaces.<BR>Endtext<BR>CREATE CURSOR curMemo (mMemo =
M)<BR>INSERT=20
INTO curMemo VALUES (lcText)<BR>SET MEMOWIDTH TO 18<BR>for i=3D1 to=20
Memlines(mMemo)<BR>? MLINE(mMemo,i)<BR>endfor i<BR></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>leads to:</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>&nbsp;&nbsp; This is=20
another<BR>&nbsp;contrived <BR>example, but then,<BR>&nbsp;aren't they=20
all?<BR></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>&nbsp;&nbsp; Here is yet =
<BR>another=20
paragraph,<BR>&nbsp;indented with 3 <BR>spaces.<BR></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>What's wanted is:</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>&nbsp;&nbsp; This is =
another<BR>contrived=20
<BR>example, but then,<BR>aren't they all?<BR></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>&nbsp;&nbsp; Here is yet =
<BR>another=20
paragraph,<BR>indented with 3 <BR>spaces.<BR></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>But even that looks bad. =
Paragraph width is=20
of course</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>much too small to make a =
readable text.=20
Even better</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>would be hyphenation and =
blocktext. In the=20
end it's a</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>word processor task to come up =
with=20
something like</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>this:</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>&nbsp;&nbsp; =
This&nbsp;is&nbsp;another=20
con-<BR>trived&nbsp; &nbsp;example, &nbsp;&nbsp;but </FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>then,&nbsp;aren't they =
all?</FONT></DIV>
<DIV><BR><FONT face=3D"Courier New" size=3D2>&nbsp;&nbsp; Here&nbsp;is =
&nbsp;yet=20
another</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>paragraph,&nbsp;&nbsp;&nbsp;=20
&nbsp;indented</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>with 3 spaces.<BR></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>I'd still go with word =
</FONT><FONT=20
face=3D"Courier New" size=3D2>automation for this task.</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>It can hyphanate word, have =
blocktext by=20
increasing</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>spacing between words *and* =
increasing=20
spacing</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>between letters, which would =
work even=20
better for</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>example on the second lines of =
both=20
paragraphs.</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Bye, =
Olaf.</FONT></DIV></BODY></HTML>

------=_NextPart_000_003E_01C78415.1FD45FE0--
 




 6 Posts in Topic:
Mine is Better Than mline()
Gene Wirchenko <genew@  2007-04-18 20:27:21 
Re: Mine is Better Than mline()
"Olaf Doschke"   2007-04-19 07:58:28 
Re: Mine is Better Than mline()
Gene Wirchenko <genew@  2007-04-19 09:51:51 
Re: Mine is Better Than mline()
Josh Assing <XjoshX@[E  2007-04-20 16:04:48 
Re: Mine is Better Than mline()
"Olaf Doschke"   2007-04-21 13:01:06 
Re: Mine is Better Than mline()
"Fernando D. Bozzo&q  2007-04-25 14:55:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 12:37:45 CDT 2008.