Centering lines on reports...
Kenneth Brody
kenbrody at bestweb.net
Mon Jun 21 07:17:51 PDT 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?
Division has higher precedence than addition. Therefore, John's code is
equivalent to:
"40" - ( len(ab)/"2" )
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody at spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
More information about the Filepro-list
mailing list