Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Page numbers in column footers
Message
De
17/08/1998 18:44:37
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
17/08/1998 08:38:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00126012
Message ID:
00127570
Vues:
34
>>If I pute _PAGENO*2-1 in the column footer, it appears in both columns. How do I get _PAGENO*2-1 to print in column one but not column two.
>>
>
>Right, let´s see. You could print _PAGENO*2-(IIF(ODDCOLUMN(),1,0)).
>
>Function ODDCOLUMN should be something like this:
>
>*
>* WARNING!! UNTESTED CODE AHEAD!!
>*
>IF TYPE("WHICHCOLUMN")="U"
> PUBLIC WHICHCOLUMN
> WHICHCOLUMN = 0
>ENDIF
>WHICHCOLUMN = WHICHCOLUMN+1
>RETURN (WHICHCOLUMN%2=1)
>
>After the report, you should RELEASE WHICHCOLUMN.
>
>Hope this is better!

Now _PAGENO*2-(IIF(ODDCOLUMN(),1,0)) becomes completely unnecessary, since you've actually invented a column counter, which will work (well, should) for three or four columns, too. It just needs to Return WhichColumn, and the field to print is OddColumn(), which now has a wrong name :)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform