Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Yet another Grid Solution Needed
Message
From
19/10/1998 13:14:23
 
 
To
18/10/1998 22:56:06
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00148009
Message ID:
00148188
Views:
27
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform