Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting Default Buffering Mode for DataSession
Message
 
 
À
29/12/1999 14:00:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00309883
Message ID:
00310009
Vues:
24
>>>>If I create another Data Session, I can switch between the default DS and the new DS, and independently set the default buffering mode for each DS with the Tools:Options:Data:Buffering setting.
>>>>
>>>>I know how to use CursorSetProp('buffering', 4) to change the value once the table is opened, but I can not figure out how to set the default buffering mode programmatically so the table opens in buffering mode 4, for example.
>>>
>>>CURSORSETPROP("Buffering",0) will set the default for all future cursors/tables buffering mode to be 4.
>>
>>That command gives an error.
>
>Whoops, that's because it's not right! ;)
>
>It should be CURSORSETPROP("Buffering",4,0).
>
>Sorry about that. :(

This must be an undocumented feature. The second parameter of 4 is pessimistic buffering, and the 3rd parameter is usually a view or table name [if passed]. I just tried this on a remote view [where only optimistic buffering is permitted], and it worked.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform