Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding more that one record in views
Message
From
19/10/2001 07:50:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00570331
Message ID:
00570714
Views:
19
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform