Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does anyone knows about a GRID that allows arrays input
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00172415
Message ID:
00172449
Vues:
28
Hi Eric,

>I understand that I can do this by filling a temporary table with blank lines and save it after but it seems a bit complex for a very simple task. I tried another development product, that has its limitations, but that was providing a grid on a memory array. Doing what I want here was quiet simple. Even the new VB6 seems to have this function.

It sounds to me that you approach this problem from your experiences in VB. *s*

In VFP it's actually even easier than that. You just open the invoice and detail table with a buffer mode of 5 (optimistic table buffering). Bind the grid and all controls on the form to that table. Then use the same methods you would use with an array based approach to enter the record. With the lAllowAddNew property you could even automate the addition of a new line in the grid.

When you users are ready to save you issue a TABLEUPDATE() on both tables, if they cancel you just issue TABLEREVERT(). In fact, what in other tools has to be simulated with memory variables or arrays (buffering) is built into FoxPro.

Christof
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform