Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameter problems
Message
De
30/07/1998 12:42:18
 
 
À
30/07/1998 09:40:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00122655
Message ID:
00122747
Vues:
16
>I continue to have problems with the basics, this time passing parameters.
>
>I probably am not doing this correctly and would appreciate guidance if needed. I have a bunch of FPW tables and am creating an interface to query them using VFP3. There are three bits of search information that may be supplied, and 2 bits (date range) that are required. Using the info supplied a search is done and results are written to a separate table. A form is called displaying the gathered information in a grid. At this point I would like to be able to print a report of the query (if desired by the user) using a button pick.
>
>Here's my problem, I would like to have the search parameters displayed on the report. I pass the information from the search routine to the INIT method of the results form. They get there but I'm unable to access them beyond that. Once the parameters get to the form how do I access them at the command button and report level short of making them public?

I believe there is only one way to do that: add some properties to your form, and after receiving the parameters load the properties with them. Afterwards, you can refer to THISFORM.PROPERTY.

Beware, though, that from your report THISFORM won´t work (since you are not in a form); a workaround is

PUBLIC MYFORM
MYFORM=ThisForm
REPORT ...
RELEASE MYFORM

and use MYFORM.PROPERTY in the report instead of THISFORM.PROPERTY.

HTH!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform