I am having problems with autoincrementing fields and data buffering in VFP8 SP1. I am getting a data type mismatch error when inserting into a buffered table.
I found a tidbit of information in the vfp 8 help file but unfortunatly do not know how to use it. I want to know how to get the current value of an autoincrement field as per the following.
The following is copied from the VFP 8 help file.
When table buffering is enabled, you can move away from the current record in the following CursorAdapter events:
BeforeInsert
AfterInsert
BeforeUpdate
AfterUpdate
BeforeDelete
AfterDelete
You can also modify data in the cursor. This functionality supports scenarios such as retrieving the autoincrement value from the base table and inserting it into the cursor. When this scenario occurs, the CursorAdapter object should automatically return to the record whose changes are about to be committed after the event has occurred and commit the changes.
Does anybody know how to get the value of the auto inc field and then insert it into the cursor?
I found a tidbit of information in the vfp 8 help file but unfortunatly do not know how to use it. I want to know how to get the current value of an autoincrement field as per the following.
The following is copied from the VFP 8 help file.
When table buffering is enabled, you can move away from the current record in the following CursorAdapter events:
BeforeInsert
AfterInsert
BeforeUpdate
AfterUpdate
BeforeDelete
AfterDelete
You can also modify data in the cursor. This functionality supports scenarios such as retrieving the autoincrement value from the base table and inserting it into the cursor. When this scenario occurs, the CursorAdapter object should automatically return to the record whose changes are about to be committed after the event has occurred and commit the changes.
Does anybody know how to get the value of the auto inc field and then insert it into the cursor?