Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrays as Rowsource for Grids
Message
De
01/07/2001 15:25:54
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00525680
Message ID:
00525704
Vues:
18
>In VFP 7, is it possible to set an array as Rowsource for a grid?

Yes.

You do need a "shadow" table/cursor, however.

This "shadow" only needs one field, should have the same number of records as rows in the array, and can be tied to a column that need not be visible.

The columns that show array elements would have their ControlSource set to point to the array relative to the current RECNO() in the "shadow"; eg.
.ControlSource = "My_Array[ RECNO() ]"   && One dimension array.
.ControlSource = "My_Array[ RECNO(), column # expression ]"   && 2 dims.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform