Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resolving undefined variable
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00509828
Message ID:
00509840
Views:
14
Hi Derek,

You haven't really given us much information for work on.. but here go a few pointers

Is the array still in scope when the report is being called? if it is being run from a .Prg (as you indicate) then it should be.

Check the spelling (basic I know but we've all done it)

Open the report as a table (use reportname.frx) and search for aMaxPrintNo in all the memo fields (remember Ctrl+f doesn't work on memo fields)
Once you have found it you should be able to identify where it is used in the report.

This sounds like it may be a variable defined in the report menu which is getting deleted.

What does this array do?
Is it populated?

Error trapping in the report writer is a bugger..
One of the best ways I find to locate errors is to try and print the report, look at the printout and see where it stopped printing
If it doesn't print anything then it's in the report setup - which points to the variables/grouping side of things.

HTH

Will

>I have a report that uses a memory variable array, which is defines and set in the calling program - Works ok but I get the error:-
>
>Report d:\software\development\traxtrux 2000\reports\subconpo.frx has the following errors:
> Unknown AMAXPRINTNO - Undefined
>
>Any ideas how I can resolve this
>
>Many Thanks
>
>Derek
Will Jones
Previous
Reply
Map
View

Click here to load this message in the networking platform