Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error when saving with BufferMode 5
Message
De
19/08/2001 12:48:32
 
 
À
18/08/2001 07:41:51
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00545746
Message ID:
00545971
Vues:
14
Thanks a lot Glenn, Ii really is a weird behavior, probably affected by some corrupted class. I don’t exactly remember this happening to me previously, but in some other occasions, deleting the class, compiling and building again the class with exactly the same code solves the problem.

Regards

Oscar

>Foxpro uses negative record numbers for new records which have not yet been "tableupdated". I was not aware of this scan problem but maybe you could filter the scan like this:
>
>
>scan for recno() != 0
>    do some interesting stuff
>endscan
>
>
>
>>Hi:
>>
>>I’m using a local view with Buffer Mode = 5 (Table optimistic). After a couple of NEW’s() and their respective replaces, I get an error: “Record out of range”.
>>
>>This is happening right at the SCAN … ENDSCAN statement of the SAVE method of the cDynamicViewCursor.
>>
>>SCAN
>>IF This.IsAdding()
>> This.SetPrimaryKeyFieldState(FLDSTATE_APPEND_EDITED)
>> ENDIF
>>ENDSCAN
>>
>>
>>I’ve noticed that the recno() retrieves a negative number as it scans the cursor, the record number increments and seems to generate the error when it reaches zero.
>>
>>I’ll appreciate any kind of help,
>>
>>Regards
>>
>>Oscar Corte
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform