Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetNextModified says rec is changed, GetFldState says no
Message
De
24/06/2022 06:40:14
 
 
À
24/06/2022 00:27:59
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01684558
Message ID:
01684563
Vues:
41
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform