Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One to many Form/Grid
Message
De
09/01/2000 18:23:12
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australie
 
 
À
07/01/2000 02:10:58
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00314227
Message ID:
00315265
Vues:
23
Hi Walter,

I've changed the code to use GETNEXTMODIFIED() instead of GETFLDSTATE() and it works fine. Thanks for your help.

Gavin...

>Gavin,
>
>I assume you use the grid for displaying the child records and want to check if one or more records has changed within the grid.
>
>If you use Tablebuffering for the child table, you can determine changes by making use of the GETNEXTMODIFIED function. For more details look at help.
>
>Walter,
>
>> I have a very simple problem ( Well, I believe it should be simple !!! ) relating to a form that I'm currently working on. I have a maintenance form which has a number of fields from a parent table and a grid containing fields from a child table ( E.g a one to many relationship). I also have a toolbar which controls record navigation, saving, deleting, Etc. I'm using GETFLDSTATE() to check if the fields have changed. This works fine for the fields on the form, but GETFLDSTATE() seems to indicate that records in the grid have changed even when I just tab through the grid without making changes. Am I heading down the wrong path by using GETFLDSTATE() in a grid. What I really want to be able to do is check if changes have been made in the grid, before moving to another parent record or exiting. I don't know if I should should be using TRANSACTIONs for this. Could someone please head me in the right direction.
>>
>>Many thanks,
>> Gavin...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform