Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 5.0 - Grid - Running Balance
Message
De
03/01/1997 14:25:43
 
 
À
03/01/1997 14:12:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00016391
Message ID:
00016415
Vues:
67
>You can use the same technique in Visual FoxPro. Basically, you can put your calculation code in a method and call that method as indicated in my first reply. The running balance var will now become a property of the form and the code in the method you will create will get the value from that property and increment the current line value.

I must really be missing something then because that is what I am doing.

I set the control source for the grid column to my method thisform.calc_bal()

thisform.calc_bal code (maybe this is the part where I am messing up)
-----------------------------------
thisform.n_run_bal = thisform.n_run_bal + history.amount
return thisform.n_run_bal

I created a property for the form to hold the running balance: thisform.n_run_bal
Mike Laubach
IP Services Inc
mlaubach@ipserv.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform