Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving to a new row in a grid
Message
From
15/05/2001 10:48:04
 
 
To
15/05/2001 10:26:59
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00507094
Message ID:
00507308
Views:
10
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
Previous
Reply
Map
View

Click here to load this message in the networking platform