Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining if report object is in last detail band on p
Message
From
18/04/2006 11:03:30
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01111796
Message ID:
01114286
Views:
17
>I can't think of any way to do this other than running the report twice. Once to build a cursor that marks each detail record with the page number. Then you could run code to scan through and mark the record that happen to be the last ones on a page. Then when you run the report the 2nd time you could refer to that temporary cursor you built in the first pass.
>
>Not a pretty solution .. but the only one I can think of.


You don't needed that,

I see the last line at a page running twice time.

put a variable before get report.
lastrec=0
put in when any detail text:
If lastrec=Recno()
  wait wind "this is the last line!.."
EndIf 
lastrec=Recno()
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform