Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

_pagetotal not working on report created in 6 and saved in 8

Status
Not open for further replies.

longda

Programmer
Jul 24, 2001
66
US
I have a couple of reports that were created in VFP 6 and now we are changing over to VFP 8. When I add the _pagetotal variable to a VFP 6 report and save it in VFP 8 and rebuild the .app file I get an error message when the report is ran. There error is "_pagetotal variable not found". I tested it on a couple of different reports and get the same thing. It works correctly if I create a native VFP 8 report though.

Does anyone have any ideas. I would sure hate to have to recreate all the reports as native VFP 8 just for this feature.

Thanks for any help.
Dave L.
 
Hi,

I would suggest to copy part of your code in here to make a check possible on probably syntax-error or some like that. I had a lot of reports in VFP6 which I simply converted in VFP8 using the newly (for VFP8) _PageTotal var.

-Bart
 
Bart,

There is no code to copy. I simply added a field on the report and put the _pagetotal variable in it. I typed it in and got an error. Then I went through the field dialog boxes and selected it from the list of system variables and I got the error again.

Thanks
Dave L.
 
Dave,
Have you tried doing a:
Code:
COMPILE REPORT myreport
in VFP 8.0, before trying to run it?

Rick
 
Rick,

No, it still did not work. I am lost as to why this happens.

Thanks,
Dave L.
 
Dave,
Are you sure all required VFP8 files are available for your report once the application has been compiled in VFP8 ?

As you might know a VFP8 report will not run in VFP-area for VFP6. For VFP6 don't recognise the _PageTotal var.

-Bart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top