Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variable in report designer
Message
De
25/07/2001 22:10:02
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00530599
Message ID:
00535494
Vues:
13
Hi,

We assume that I had a report file that had a variable called cCount
for displaying the count value in the report.

Next, I had this program code that had the above variable cCount declare
and initialize to maybe 10.

In the past of VFP5, when I do the following below, it work fine.

cCount = 10
DO REPORT frmDisplay <---- this report work fine with the cCount
display as 10 in the report


Now in VFP6, when I do the following below, it give me error.

cCount = 10
DO REPORT frmDisplay <--------- this report does not work any more


Please advise me on the above problem. Thank you







>Hi Virusim,
>
>Could you please provide me with some specific, say, a code, which fails? Otherwise it's really hard to tell.
>
>Thanks in advance.
>
>>Hi,
>>
>>Since we in the topic of discussing report. I had this issue.
>>In the past of Vfp5, variable created in my form is able to be
>>use in my report. However, with vfp6, my variable is unavailable
>>to my report. Please kindly enlighten me on this area. Thank you
>>
>>>>Hi,
>>>> I would like ot count the number of group for my report result to indicate how many user match the condition using report variable. What should I do? I have read HELP, but, I cant understand it.
>>>>
>>>>Thank you
>>>
>>>Hi John,
>>>
>>>I'm not sure, I understand your problem, but you can create a variable, say, numMatch. Put this expression in value to store
iif(myMatchCondition,1,0)
Check Sum in Calculate section. Put this varialbe in the Group Footer. Now you have number of users, which match your criterion. The same way you can sum any numeric field in your table, etc.
>>>
>>>If this would not help, send me your report and a sample table with an explanation, what do you want to achieve, to my home address nosonov@msn.com and I will try to help.
Best Regards
Virusim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform