Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Spreadsheet Style Calculations in a Grid
Message
De
12/09/1997 13:18:30
 
 
À
12/09/1997 12:54:51
Ryan Hirschey
Federal Reserve Bank of New York
New York City, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00049865
Message ID:
00049876
Vues:
55
>Does anyone have any advice on how to perform spreadsheet style calculations in a grid? I have an application that has info in debit and credit fields. I want to display a calculated balance for each line item. To do this, each row in the grid will have to 'look' not only at its own debit and credit cells, but also the balance from the previous row. I am able to do calculations for each row in an array that has an item for each record, but am unsure how to get the array data into the balance cell.

You could use Cursor as Grid.RecordSource and use last record of the cursor to store recalculated numbers. Surely, you will enforce recalculation from Coulmn.Control.LostFocus events.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform