Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace Discard changes with Save changes in MODIFY FILE
Message
From
20/12/2019 08:17:16
 
 
To
20/12/2019 07:55:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01672343
Message ID:
01672344
Views:
62
This message has been marked as the solution to the initial question of the thread.
You don't have any control over how the editor itself behaves.

However, you can try to issue On Escape SomeCode before Modi file, and reset it afterwards. Or you can try On Key Label Esc.

Update: This works for me:
On Key Label ESC keyboard "{CTRL+F4}"
Modify file Somefile.txt
On Key Label ESC
>If Esc key is pressed in
>
> MODIFY FILE test
>
>window, Visual FoxPro shows
>
>> Discard changes
>>
>> Yes No
>
>prompt. How to replace this with
>
>> Do you want to save changes to test.txt
>>
>> Yes No Cancel
>
>prompt ?
>
>Yes/No/Cancel prompt appears if clicked in close button in uper right corner of close window.
>How to force it to apper in esc press also ?
>Can ON KEY LABEL esc or some custom edit windows used or other solution ?
>
>Posted also in https://stackoverflow.com/questions/59425603/how-to-replace-discard-changes-with-do-you-want-to-save-changes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform