Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page numbers in column footers
Message
From
17/08/1998 18:44:37
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
17/08/1998 08:38:19
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00126012
Message ID:
00127570
Views:
40
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform