Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use of THIS in a report
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00570893
Message ID:
00572938
Vues:
32
>You would need some way to tell the report manager what the name of the parameter was supposed to be, wouldn't you? IOW if the report has a field whose expression is 'lcx' then the report manager would need to know it should create a local memvar named 'lcx' and store the value of the parameter in it. If you're going to write your own parser anyway, then I suppose one way to do this would be to pass a name=value string, as in
createobject("MyRptMgr","lcx=param1,lcy=param2,lcz='param3'")
I see another benefit to this: you could create a table with validation rules for each report so the report manager would know how many and what type of parameters to expect. That way it could check for missing or invalid values and respond accordingly, instead of simply letting the report fail with a VFP error like "Variable 'LCX' is not found".

Hi Rick,

Your idea is great. Love it, will be implementing it the next time I need something like this.

Thanks for all the great ideas!

Alex
Low-carb diet not working? Try the Low-food diet instead!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform