Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids
Message
De
05/07/1999 09:34:39
 
 
À
05/07/1999 09:04:58
Paul Frost
Instem Computer Systems Ltd
Stone, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Grids
Divers
Thread ID:
00237462
Message ID:
00237465
Vues:
10
>Currently, my program (using VfP 5) allows entry of various bits of data, including one list. At the moment the list consists of a single string, so I use a list box to display the entered data. I am looking towards the list containing 2 or more related fields, some strings some numeric. What would seem appropriate is to move to a grid rather than list box, or trying to keep multiple list boxes synchronised on the form. Prior to entry into the table, the data is currently stored in an array, which is used extensively throughout the rest of the program. It would be a simple matter to convert the array to be multi-dimensional, but unfortunately I cannot see a way of associating array data to a grid.
>
>Am I (as is not unusual), not reading the documentation thoroughly, or is it not possible to create a grid object using an array as the data source.
>
>One method seems to be to create a temporary table & use that to access the grid & then repopulate the array from the table - but that seems to be a little bit excessive. Though it would be simpler than rewriting the program so that it used a temporary table rather than the current array.
>
>Any help would be appreciated,
>Paul

The best way to use grids is to link them to cursor as recordsource. Moving data from cursor to array and/or back is matter of one command:
SELECT ... Into Array // Insert ... from Array
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform