+1

Most recent used program list

davehocum 2 years ago in Software / PC-DMIS updated by neil.kay 6 days ago 2

When a program is deleted including the backup programs then the program should automatically be deleted from the most recent used program list.


Tested this File list with 2018R1. I first created a Test Delete File.prg, saved the program and closed the program. Next, I select File and see the Test Delete File.prg in the most recent used program list. Select Open file and change the File Types to (All), select all of the Test Delete File.prg, and delete them. Select Cancel, Close PC-DMIS and start PC-DMIS. Select File and select Test Delete File.prg in the most recent used program list. (Which shouldn’t be there after deleting) Then the Error: File closed because of a bad archive. Now select File Open and there is a corrupted Test Delete File.prg in the folder. Therefore, PC-DMIS created another program named: Test Delete File.prg in the folder. Another unfinished develop part of the software. With this test, the PC file setting is set to Show hidden items. 


With 2016.0 when doing this test there is no errors. But there is a blank program created back into the folder that the original program was deleted from.


Just finished testing this with Technical Preview 2018R2. With this version, PC-DMIS still shows the Test Delete File.prg in the most recent used program list. When selecting this program from the most recent used program list the error now is File doesn't exist! In addition, there is no corrupt program created back into the file that this program was deleted from.


Just finish another test with 2018 R2.
1. Created a Test Delete.PRG, saved and closed program leaving PC-DMIS open.
2. Deleted the Test Delete.PRG from file.
3. Select File in PC-DMIS and select the Test Delete.PRG from the MRU list and get the "C:\Users\Public\ect…: File doesn't exist!"
After selecting OK there is no corrupt program created in the file.
Now, if I close PC-DMIS after Step 2 the MRU shows the deleted Test Delete.PRG as "C:|Users\…\Test Delete.PRG". In which indicates that the program is either moved or deleted.
After selecting the "C:|Users\…\Test Delete.PRG" from the MRU list I will get the "C:\Users\Public\ect…: File doesn't exist!" and no corrupt program created in the file.
So, yeah there is an improvement with this issue.

Also note that if you still have a backup file (.PRG^) after deleting the original in Explorer, PC-DMIS will correctly notice that it exists, and ask if you want to restore it when you try to open the non-existing original.