Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding more that one record in views
Message
De
19/10/2001 07:50:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00570331
Message ID:
00570714
Vues:
18
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform