Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetNextModified() returns true, although it shouldn't!
Message
De
01/04/2004 16:07:14
 
 
À
01/04/2004 12:57:55
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00891517
Message ID:
00891598
Vues:
25
>>I have a view cursor with just one record. I do GetNextModified(0, "MyCursor") and get result: 1.
>>I go to the first (and only) record on the cursor and do GetFldState(-1, "MyCursor") and get all 1's, so the record has NOT been changed or touched.
>>
>>I'm using VFP6 SP5 on XP Professional.
>>
>>What might be the problem?
>>
>>
>>Thanks!
>
>GetNextModified() doesn't move the pointer but go does. You might be causing an implicit tableupdate() wih row buffering ?
>Cetin

Cetin:

Thank you for your suggestion.

I am actually using Table Buffering, so that shouldn't be the case. Also, according to "Hacker's Guide to VFP 6" GetNextModified() actually does move the record pointer at least temporarily, which is one of the weaknesses of that function, since it will fire row rules as it goes...

However, this "false positive" really bugs me, because I am relying on GetNextmodified() quite heavily, and now I have some misgivings about its accuracy at all times. I create a workaround function for now that doublechecks the GetNextModified() positive findings with GetFldState() for each of the supposedly modified fields, but this seems like a lot of work for something that should work out of the box...


Pertti
Pertti Karjalainen
Product Manager
Northern Lights Software
Fairfax, CA USA
www.northernlightssoftware.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform