Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking to see if a general field has changed.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00012095
Message ID:
00012146
Vues:
41
>I have a WriteBuffer method in Codebook that checks to see if it should write changes to the buffer if the user clicks on the toolbar, it works good. The only problem is that it doesn't update the buffer with OleBoundcontrols because:
>
>1. You can't EVAL(_screen.activecontrol.controlsource)
>on a general field.
>2. The OleBoundControl doesn't have a value property to check against the controlsource.
>3. Oldval() and Curval() don't work on general fields.
>
>One workaround is to eliminate checking to see if it has changed like the grid, but this is not the answer if we want to buffer all data fields.
>
>Any advise?
>
>Thanks,
>Greg

Crude way to do this is to store the datetime stamp of the .fpt file where the general field is stored. If the general field is changed in any record the datetime stamp will be updated.

HTH
Todd Burstain, MD
infinitydoc@delphi.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform