Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find out if data on a form has changed?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00458367
Message ID:
00458376
Vues:
19
Thanks Nadya!

>>What is a good way to find out if data on a form has changed and will require a (tabelupdate) save? I want to know so that the
>>"cancel" button will prompt "are you sure" before reverting the changes otherwise it will just clost the form. My fields on the form
>>are bound to the table field. Data is table buffered. Using vfp5.
>
>Not usre, it if works in VFP5.0(hopefully, it does):
>
>lnModified=GetNextModified(0)
>         IF lnModified0 and lresp=0
>              lresp=messagebox('Do you want to save changes?',36)  &&+32
>         ENDIF
>        IF lresp=7  && User requested that changes not be saved.
>               =TABLEREVERT(.T.,THISFORM.laDE[i,1])
>          ELSE
>               *=TABLEUPDATE(.T.,.T.)
>               =thisform.dotableupdate()  && NSL 6/26/00
>          ENDIF
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform