Centering lines on reports...

George Simon flowersoft at compuserve.com
Mon Jun 21 03:11:34 PDT 2004


          Souldn't that be
           If:
      Then: mid(aa,"80"-len(ab)/"2",len(ab))=ab
          John?

----- Original Message -----
From: "John Esak" <john at valar.com>
To: "filePro mailing list" <filepro-list at seaslug.org>
Sent: Monday, June 21, 2004 3:24 AM
Subject: Centering lines on reports...


>
>
> Hello all,
>
> There's been a relative paucity of filePro stuff here lately, so here's
> something from The FP Room that might be of use.
>
> You may want to center the headings or other lines on your reports or
forms.
>
> This came up in the fP Room the other day. Here is a nifty approach. It is
a
> small rework of the old way we used to have to center SHOW lines before
> SHOWCTR. I've couched it here as something you can test in clerk, but
> obviously, you would use it in report by placing the filled variable *aa
at
> the beginning of the line. Do something similar with all lines you want to
> center.
>
> John
>
> Visit The FP Room www.tinyurl.com/yuag7 24/7
>
>   1  -------   -   -   -   -   -   -   -   -   -
>        . If:
>        Then: end
>   2  -------   -   -   -   -   -   -   -   -   -
> @keyT  . If: '@keyT
>        Then:
>   2  -------   -   -   -   -   -   -   -   -   -
>        . If:
>        Then: aa(80);  ab="I am centered"
>   3  -------   -   -   -   -   -   -   -   -   -
>        . If:
>        Then: mid(aa,"40"-len(ab)/"2",len(ab))=ab
>   4  -------   -   -   -   -   -   -   -   -   -
>        . If:
>        Then: show("18","1") aa;  end
>
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>




More information about the Filepro-list mailing list