>When you add new data to a grid, you INSERT records to the cursor. On save point you scan the cursor, insert new records (with zero primary key) to the table, and update exisitng records
>(search by primary key) in the table.
>
>
>please explain me some more about (with zero primary key) .
>
>please explain me some more about (search by primary key) .
>
>please with example (if possible).
>
>warm regards,
>mk.
Every table is supposed to have a primary key, preferably integer number. When you fill the cursor all records carry this key. New records added during edit session will have 0 in that field. So on save point your code will recognise if record is new or existing and to update existing record you will firstly Seek in table by using the key.
Edward Pikman
Independent Consultant