Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does cursor buffer have any changes?
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01507610
Message ID:
01507620
Views:
57
>>>>Hi,
>>>>
>>>>Is there a way to determine if a cursor buffer has any pending changes? I am looking at function GetNextModified() which will probably work. But my understanding that it goes though a number of records. And I am interested to know if the current record of the buffered cursor has any changes. Any suggestions?
>>>
>>>GETFLDSTATE() ?
>>
>>I thought about it but I will have to scan through all the fields. Which is doable. I was hoping that CursorGetProp() would have a property that would indicate if the cursor record has pending changes. But nothing else, scanning fields with GetFldState() should work.
>>Thank you.
>
>You can check all fields at once with -1 field # . and than check result for modification. One line of code.

I didn't know that. Thank you very much.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform