>hello people, now i working in an editor for objects, but when i add a record i need save this for generating an id, how i can add n records and later discard?
>sorry, but i need work with an editor for object in a view and later the user can discard all changes, i can do that?
>
>Best Regards
>
>Francisco Morosini
1) Activate buffering:
cursorsetprop(...)2) Save changes with
TableUpdate(...) (return value tells you whether records were changed successfully).
3) Discard changes with
TableRevert(...).
4) If you'r changes affect other tables (like, for creating serial numbers), use transactions. See help under
BEGIN TRANSACTION, END TRANSACTION, ROLLBACK.
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)