Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report DE property not found in an expression
Message
 
 
À
12/01/2009 20:24:33
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01373027
Message ID:
01373034
Vues:
21
>UPDATE: Ok, I made this work using a public variable - which I didn't like to do - but I would still like to understand it. I think it's because THIS is the DE, not the report itself. Is there any way to reference properties of the DE in an expression in the report?
>.
>.
>.
>I have this in the INIT of the DE of a report form:
>
>THIS.AddProperty('TotalCodes')
>* Run some SQL...
>THIS.TotalCodes = _TALLY
>
>Then this in an expression in the report:
>
>THIS.TotalCodes
>
>I'm getting an error when running the report that TotalCodes is not found. What am I doing wrong? I have other properties that work, though none that are expressions. Is it a scoping thing of some sort?

Probably this.DataEnvironment.myProperty. Did you try report variable? Long time ago when I faced similar problem I used public variables. You can also use _screen.AddProperty if you want and then remove them in Destroy.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform