Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variable not found in report
Message
De
26/02/2002 09:45:13
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Variable not found in report
Divers
Thread ID:
00625063
Message ID:
00625063
Vues:
41
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform