Centering lines on reports...

Jim Asman jlasman at telus.net
Mon Jun 21 02:36:57 PDT 2004



--------------- Original Message ---------------
At 03:30A Mon Jun 21 2004, Fairlight wrote:

> The honourable and venerable John Esak spoke thus:
> >        Then: mid(aa,"40"-len(ab)/"2",len(ab))=ab
> 
> John, shouldn't that be "80"-len(ab)/"2" rather than 40?  By your formula,
> you'd be centering on the 20th column, wouldn't you?

The math looks OK to me. Nominally the text string is being positioned
1/2 its length to the left of the mid-point(40) of the 80 char string.


Jim 
--
jlasman at telus.net                       Spectra Colour Services Ltd.
Jim Asman                               Box 2-10688 King George Hwy.
Phone: (604)584-0977                    Surrey, BC  V3T 4W4             
 Cell: (604)619-0977                    CANADA



More information about the Filepro-list mailing list