Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find out if data on a form has changed?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00458367
Message ID:
00458376
Views:
18
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
Previous
Reply
Map
View

Click here to load this message in the networking platform