Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetNextModified() returns true, although it shouldn't!
Message
From
01/04/2004 16:07:14
 
 
To
01/04/2004 12:57:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00891517
Message ID:
00891598
Views:
26
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform