Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Hi Barbara,
I've changed the code to use GETNEXTMODIFIED() instead of GETFLDSTATE() and it works fine. Thanks for your help.
Gavin...
>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...
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement