Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Basic confusion
Message
 
À
15/12/1999 00:20:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00303899
Message ID:
00303982
Vues:
28
Hi Randy,

>Hi. VFP6 user here with some basic questions:
> I am trying to build a form to ask for a variable, then pass the variable to a 'report form to print' command and use the variable in the report (as well)
> Questions:
> 1. How do I get the form to go away one I am done with it?

Use the form's Release method. If the form is closable (X box in the upper right corner), the user can click that to release the form. You can conditionally prevent this behavior by issuing NODEFAULT in the QueryUnload and returning .F.

> 2. How do I use the variable that I captured in "REPO FORM myrept TO PRINT FOR &myvar $ mycodes"?

I'm not entirely clear on this question. Personally, I use queries as the basis of all reports and don't use the FOR clause.

> 3. How do I use this variable to call the heading of the report from another dbf. Old 2.6 way was "codelist.codes&myvar" would pull the field codelist.codeA from the dbf codelist.

If the variable is declared as private, and initialized (or passed using the PARAMETERS statement rather than LPARAMETERS) in the code that calls the REPORT command, it will be visible to the report.
> Thanks !
>Randy
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform