Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variable
Message
De
18/05/2005 22:35:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
18/05/2005 22:30:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01015673
Message ID:
01015674
Vues:
18
>How can i show a variable from a form on the report?I did it only for the first view of report(preview) when i use variable name directly from the form,when 2nd touch on the report(click on next page or zoom), the variable was gone bcoz the form was run over.Please help!

You can declare the variable either as public or as private. I recommend private, since it is less "drastic". Declare it in the same procedure in which you invoke the report (or in which you invoke another procedure, which then calls the report).

For example:
* Button click event
private pcTitle
pcTitle = alltrim(ThisForm.TxtReportTitle.Value)
report form abcde
In the report, you might show the variable title in a field expression.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform