Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving to a new row in a grid
Message
De
15/05/2001 10:48:04
 
 
À
15/05/2001 10:26:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00507094
Message ID:
00507308
Vues:
9
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
Fil
Voir

Click here to load this message in the networking platform