Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: Jim Carls
  Where is Jim Carls?
 Nashville
 Tennessee - United States
 Jim Carls
 To: Tamar Granor
  Where is Tamar Granor?
 Elkins Park
 Pennsylvania - United States
 Tamar Granor
Subject: RE: Calc'd header expression vs record value
Thread ID: 441240 Message ID: 441245 # Views: 35 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Reports and Printers
Date: Thursday, October 20, 2016 10:43:46 PM         
   



> > I have a report that has a field in a group header that is supposed to show "specification" and "vendor" data from a related table and from a table related to the latter:
> >
> > lvItemData -> Specifications -> Vendors
> >
> > This field concatenates the values of several character variables that are used because the entire formula is too large to fit the field's own "Expression" entry. The header's break expression (which is used in a separate report field in the same header) is showing the correct information from lvItemData, but the calculated expression for specification and vendor information is showing the values from the previous record.
> >
> > If I add a new test field that shows the field value from the "Vendors" table, it is correct, so the pointers are working correctly.
> >
> > I've tried moving the variables above the break expression in the variable list, but the value printed from the original field is still wrong.
> >
> > I know I can edit the definition of lvItemData to incorporate the desired child data, but I seem to be missing something about the order and timing of how variables are calculated, and it would help if I know what that is. Does anyone have any suggestions? Thanks!
>
> Do you have Cathy Pountney's Report Writer book? She talks about this stuff in chapter 8.
>
> Tamar

No, I have "Flying Fox" by Lisa Nicholls.

ENTIRE THREAD

Calc'd header expression vs record value Posted by Jim Carls @ 10/20/2016 6:04:55 PM
RE: Calc'd header expression vs record value Posted by Tamar Granor @ 10/20/2016 10:31:33 PM
RE: Calc'd header expression vs record value Posted by Jim Carls @ 10/20/2016 10:43:46 PM
RE: Calc'd header expression vs record value Posted by Jim Carls @ 10/20/2016 11:32:12 PM
RE: Calc'd header expression vs record value Posted by Jim Carls @ 10/21/2016 5:21:19 PM