Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Yet another Grid Solution Needed
Message
De
19/10/1998 13:14:23
 
 
À
18/10/1998 22:56:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00148009
Message ID:
00148188
Vues:
28
>I current testing the grid and I not sure how to solve this problem. I have a grid and I want the RecordSource of Grid1 to be an array ( Eg. 5X5 Dimension arrays < 5 rows and 5 columns > ). How could I store and update the array inside the grid? and Where do I initialize the array?


It`s a little bit tricky, but we have done it. First, the grid needs a file to work with, so CREATE CURSOR DUMMY (SOMETHING C(1)), APPEND 5 records to it, and set the Grid.RecordSource to DUMMY. Set all the columns BOUND property to .F., and set the first column.textbox.ControlSource to MYARRAY(RECNO(),1); the second, to MYARRAY(RECNO(),2), and so on.

You are done!

PS. Why set BOUND to .F.? If you don´t, the textboxes will become ReadOnly no matter what you do.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform