Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Total on last detail line
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01014348
Message ID:
01014839
Views:
17
>Hello Cathy,
>
>Can you do what he is asking using the method you are proposing? This would be a (cool) feature of the report writer I'm not aware of. I snipped out the first part of his example, which was not the way he wanted to do it.
>
>Every time I've asked you something like this before, you've said "yes", and you were right. :)


I went back and reread this thread and realized that I completely missed the point that he wanted the subtotals on the same line as the last detail line of each invoice. The solution I provided wouldn't exactly do this ... but ... I do have a suggestion that would work. Create a report variable called rlEndOfInvoice and initialize it to .f. In the expression of the report variable .. call a UDF such as IsLastInvoice(). Create a UDF that does something like this...
lEnd = .t.
lnInvoice = MyTable.InvoiceNumber
IF NOT EOF()
  SKIP
  lEnd = (lnInvoice <> MyTable.InvoiceNumber)
  SKIP -1
ENDIF
RETURN lEnd
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Reply
Map
View

Click here to load this message in the networking platform