Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One to many Form/Grid
Message
 
À
06/01/2000 20:19:06
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00314227
Message ID:
00314249
Vues:
34
Gavin,
Is the change in GetFldState(-1) happening when you move into a record? If so, then check your bound controls. This will often happen when you have a combo box bound to a field. As the combo value is reset when you change the record pointer it triggers that the field has been changed.

A quick (although VERY cheesy) workaround is to call 'tablerevert()' after moving the pointer but before actually DOING anything.

HTH
Barbara


>Hi All,
>
> 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...
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform