Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to reference a Column of Grid?
Message
De
24/01/2001 13:47:30
 
 
À
24/01/2001 13:40:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00468064
Message ID:
00468072
Vues:
23
>Hi. I have a grid that can contain one or more columns. In my form init I Delete the Columns that I don't want, based on User Setup tables. The last column is the total column for the row. I want to update the total column whenever a total from one of the other columns is changed. In the LostFocus Event of the subtotals I want to put the code to add the fields. How do I reference the last column of the grid without knowing what column it is?
>
>I know I need to use:
>THISFORM.pgframe.page1.grid.Column??.field.Value and I know that the last column is stored in THISFORM.pgframe.page1.grid.ColumnCount, but how do I put this together???
>
>Thanks for your help
>
>Sandi Cassidy
>scassidy@canaccount.com

If you know the column number, i.e. if you column number actually is .ColumnCount, you should be able to use the .Columns(n) syntax, e.g.
THISFORM.pgframe.page1.grid.Columns(THISFORM.pgframe.page1.grid.ColumnCount).field.Value
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform