Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Cetin,
The grid is actually going against a table buffered (5) cursor. When a user makes a change and confirms it, it goes against the master, deactivates the old record (sets a field to false) and inserts the new record from the cursor.
My hope is to keep a master file with a history of changes. I am buffering the cursor so ,in case the user does not confirm the change, I can easily return the record to its previous state.
One other thing:
Since the cursor is table buffered, my getfldstate(-1) will still show a change if the user happens to move through the record again after the initial change has been made to the master. Therefore, I check against the master to see if this record with changes allready exists in the master. If so, I don't execute the rest of the procedure and I don't bother the user.
This is the best approach I could come up with. I am very open to other suggestions. Since I haven't done that much coding in VFP 6, I am still trying to set my standard methodologies.
Thanks again,
Mitch
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