Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursorsetprop(buffering,5,0) and create cursor ??
Message
De
11/06/2004 00:27:30
Suhas Hegde
Dental Surgeon
Sirsi, Inde
 
 
À
10/06/2004 14:54:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Divers
Thread ID:
00912173
Message ID:
00912547
Vues:
23
>>Other wise what would be the use in making a cursor transactable? when this does not defaults to 5 and should always be set manually
>
>Hi Suhas,
>
>Why do you think that making cursor transactable somehow connected to setting buffering to 5? In fact, if cursor is in table buffering mode, it can not be made transactable.
>
>Thanks,
>Aleksey.

Hi,

Why would U make the cursors behave differently other than tables ?

Eg:
close all
create cursor abcd (abcd C(200))
selec abcd
?cursorgetprop("buffering","abcd") && returns 1
?maketran("abcd") && returns .t.
** now Open this again
use dbf('abcd') in 0 again alias abcd1 && opens
select abcd1
?cursorgetprop("buffering","abcd1") && returns 5 && accepted as  this is opened as a table

close all
create cursor abcd (abcd C(200))
selec abcd
?cursorgetprop("buffering","abcd") && returns 1
** now Open this again
use dbf('abcd') in 0 again alias abcd1 && opens
?cursorgetprop("buffering","abcd") && returns 1
?maketran("abcd") && returns error because opened again as a table abcd1 -- this would hamper all those opend again in different work areas......
select abcd1
?cursorgetprop("buffering","abcd1") && returns 5 && accepted as  this is opened as a table
?cursorgetprop("buffering",1,"abcd1") 
?maketran("abcd") && returns .T.
So it would be better for the cursor to follow cursorsetprop("buffering" .... (my wish) .. to keep it more simple ?

suhas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform