Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data buffering not working
Message
De
30/07/2001 12:43:53
 
 
À
22/06/2001 03:37:38
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00521900
Message ID:
00537283
Vues:
19
The views are in buffer mode 5 unless we are indexing them, in which case they are in 5.

I've come back to this problem after a long time. I now remeber what the problem is.

I have fields named after a foxpro reserved word - "desc" & "selected".

Change the name and the problem goes away.

Thank you for your help.

>Don first thing that you need to check is if the table/cursor is in table bufferring mode try doing the following put a button in the form and on the click event do a set step on in the vfp the select the data session where the table/cursor is located on the command window do wait window TRAN(cursorgetprop('buffering', tablealias)) the value show must be 5 of 4 as optimistic or pessimistic table burrering.
>
>>I have started a new form using my base form class which I have used for over 50 forms.
>>
>>The Base form class uses data buffering. It contains a "Changed" method which is called from the valid event of the textbox. It compares this.ActiveControl.Value against oldval(this.ActiveControl.DataSource) to see if there was a change. If there was a revert toolbar button is enabled.
>>
>>This works on the other, older forms - not the new one.
>>
>>oldval(this.ActiveControl.DataSource) returns the NewValue as if the change were already committed.
>>
>>BaseForm BufferMode is optimistic. I have tried BufferModeOverRide for the cursor of 1,3 & 5. All fail to catch the change.
>>
>>MultiLocks is set on.
>>
>>I have checked all these settings from the Valid Event of the textbox before Changed().
>>
>>I have run into this before and cannot for the life of me remember what the problem is. What am I missing?
Best Regards
Don Simpson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform