Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetNextModified says rec is changed, GetFldState says no
Message
From
24/06/2022 06:40:14
 
 
To
24/06/2022 00:27:59
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01684558
Message ID:
01684563
Views:
40
>>>The error handler loops through all tables and reports their buffering status and whether any records have changes. For the relevant table, GetNextModified() reported a single changed record, but GetFldState() for that record returned all 1's.
>
>Hi Tamar, you seem to specialize in these weird ones at the moment! ;-)

Don't mean to brag, but I can pretty handle the normal ones. It's the oddballs where I need to ask for help.

>
>Not sure this applies here when unload() definitely is supposed to fire last, but perhaps another reason to move focus to a hidden dummy control before testing for changes in case of some weirdness involving edits in a grid, or control with format property or valid() with unexpected action, or some other sneaky change mechanism.

That's an interesting idea. There's no grid on the form in this case, but lots of Valid code. I've definitely fixed a bunch of issues that resulted from Valid code firing in View mode and leaving me with changed fields. That's worth checking for, though until now, whenever that's happened, GetFldState() tells me which field is involved.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform