Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing A Form's Value As A Report Variable
Message
De
30/03/2002 13:19:11
 
 
À
30/03/2002 12:44:18
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00639158
Message ID:
00639165
Vues:
22
>Hello All
> I am producing a report, that takes as one of its values, the contents of a form's property. On the form in question, the user selects a month for the particular report. A simple DoCase..Endcase assigns the name of the month for the particular spinner value. The report is then launched via a command button on the form. I have set up a field control on the report that uses the property from the form as follows:
> formname.property . Now when I am modifying the form and I run it, the report picks up the value of the property perfectly and displays the control on the form. When I build the application and run it, it treats the form's name as an alias and the form errors out. Am I missing a setting on the report end, or is the syntax for accessing a property from an active form incorroect? Thanks for suggestions.
>
>Regards,
>Carmen

Carmen,

You are never sure about the formname since a form may be active more than once at the same time. Also, I do not think that formnames are available in the runtime. They just serve for debugging purposes.

There are as far is I know two possibilities for handling this

(1)
in the form
private Var1
Var1 = thisform.Property

report form... && reference Var1 in the report

(2)
in the form
private oForm
oForm = thisform
report form ..... && reference oForm.Property
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform