Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Buffering
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00067804
Message ID:
00067820
Vues:
20
>I have a multi-user vfp application and I'm throwing away my "old style" record locking and updating techniques and trying my hand at VFP's new buffering. I have several forms and want to initiate different buffering modes for some of these forms. I am using data environment buffering overide, but when I switch between forms the buffering mode doesn't change to the settings in the buffermodeoverride of the active form. Is there a way to assure that the buffering mode sets to the value of buffermodeoverride of the active form. When the form is instantiated it appears to switch fine, but if the form is already opened and then it becomes the active form, the buffering mode won't change to the active forms buffermodeoverride setting. Any help on this is greatly appreciated! Thank You.

Several things come to mind. Each form can have its own private data session or it can be using the default data session. Let's say I have an initial form that has a private data session with a master table open. A user selects a row to manipulate which instanciates a second form. The second form uses the default DS which, in affect, would be the private DS of the first form. I placed the same table in the DE of both forms but with different buffermodes (3 in 1st, 4 in 2nd). The buffer mode of the master table opened in the first form, when I tried this, changed to the buffermode of the 2nd form. When I exited the 2nd form back to the 1st form, the buffermode did not change back.

You need to use CursorGetProp("Buffering","TableName") in the Debugger and open the VIEW (Datasession in VFP5) window while testing to observe the behaviours of your forms and tables. Use can use CursorSetProp() function to explicitly switch back and forth between buffer modes for individual tables.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform