Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays as Rowsource for Grids
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00525680
Message ID:
00525701
Views:
20
>In VFP 7, is it possible to set an array as Rowsource for a grid?

No, but you can create a cursor with appropriate structure and copy data from array into the cursor.
CREATE CURSOR Mycursursor ( ... )
APPEND FROM ARRAY Myarray
Be advised that if the array is one-dimensional, APPEND FROM ARRAY adds only one record to the table. The workaround is to redefine the array in following way
DIMENSION Myarray[ ALEN(Myarray), 1]
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform