Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append recs goes overlaped
Message
From
19/01/2002 04:37:07
Cristian Tenea
Aquila Part Prod Com
Ploiesti, Romania
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00606423
Message ID:
00607218
Views:
36
>>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.

There is nothing to do on else because the IF ...::new() tryes to save the curent record in parent and all in child if there are edits, and APPEND BLANK in parent. If this was a success then append one record in child


>>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?

Yes, it is like was first set in DE - table buffer optimistic

>>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.

The area is selected right in save method few lines prior tableupdate, it's possible to run another method by a timer between lines of a method (i know the VFP is not multithreaded)

>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.

Good point, I will give it a try on monday.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform