Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable not found in report
Message
From
26/02/2002 09:45:13
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Variable not found in report
Miscellaneous
Thread ID:
00625063
Message ID:
00625063
Views:
42
Hello all.

I'm using a report which has a variable "lt2" to count the number of counties coming through. Under lt2's properties & calculations, reset: county and calculate = count. The same report is run from 2 different programs. When it runs from the first, everything if fine. When it runs from the second, it tells me "Variable "lt2" is not found. I put a "set step on" before the call to the report and checked all the variables being passed. The are all fine, including the county field. This part of the code is exactly the same as the other programs. This prg. is used if there is an error in the first program (or user error) and the user has to reprint.

Here is my code:

select a
index on dtoc(rev_date)+str(county,2)+lic_num to lifpt1
set safety on
SET INDEX TO LIFPT1
SET ORDER TO LIFPT1
SELECT LIFCNTY
SET ORDER TO COUNTY
SELECT A
t1b=flock()
set relation to substr(lic_num,1,3) into liflic
goto top
REPLACE ALL GIFT WITH LIFLIC->TYPE_CARD
SET RELATION TO COUNTY INTO LIFCNTY
goto top

set step on

report form liffrec TO preview


Thanks!
Sunshine
Next
Reply
Map
View

Click here to load this message in the networking platform