Message Box for Unsaved Changes

Message Box for Unsaved Changes

How do I get a message box to appear if users have not saved their work, asking them if they want to save their work? (I am using PowerBuilder 7 and Windows NT 4.0.)

You need to check for modifications in the close query event of your window. If there are changes, you need to prompt the user and then set the return value to the event.


Share the Post: