Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Append recs goes overlaped
Message
 
À
18/01/2002 14:32:10
Cristian Tenea
Aquila Part Prod Com
Ploiesti, Roumanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00606423
Message ID:
00607057
Vues:
34
>I never get an error in new() method; the form have an ~all cases treated in error event. The new() method is called from a button to make room for editing a new record, and newgrid() several times for new lines on child, finaly save() for all.

Your code had IF ...::New() my question is what if New() returns False you have no ELSE on that IF.

>User 2 replaces data over fresh appended record of user 1.

This sounds like there is no buffering going on. Have you checked CursorGetProp("buffering","ALIAS") on these tables at runtime?

>The area with table wich need saved are selected prior.

Makes no difference, You are in an event driven system with VFP. Someone could add a timer or other code call that fires and changes work areas on you. It is much better to use all of the arguments on TableUpdate() so you cqannot get burned by this kind of change later on.

TableUpdate( < nRows >, < lForce >, < cAlias >, < aErrorArray > )

This will prevent any un expected problems and it will populate the aErrorArray with information about why TableUpdate failed in case you ever what that info later to recover from problems.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform