May 3, 201213 yr I deploy runtime solutions to my customers who have no idea what to do if they encounter a 'file damaged' condition with the instruction to use 'file recovery'. What I would like to do is trap the condition and provide a custom instruction. Now they call paniced, I give them the simple instruction, and life is good in a few minutes. Can I trap and provide the message when the runtime encounters 'file damaged'?
May 3, 201213 yr It's a bit hard because the message will be generated from INSIDE the file, and FMP is telling the user that the file cannot be opened.
May 4, 201213 yr Author It would be great if there were a file option to specify your own message to be displayed when FM can't open the file!
May 4, 201213 yr It's a bit more complex than it looks: the file needs to phone-ahead to the FMP application and say "You're about to open my file, here is the message you should display if you cannot open it because it's damaged." To do this, use an "opener" file that opens the real file. In the script in the opener file trap for the file damaged error and issue your warning if the file cannot be opened. Just in case the opener file ever gets damaged, use another opener file to open the opener file to open the real file. Rinse and repeat.
May 4, 201213 yr Author I should have thought of that! Already use an 'opener' file. Just need to capture the error. I'll risk that the opener file doesn't get damaged! It never has in 8 years - so far. Thanks!
July 5, 201213 yr An "opener file" what's that ? Sorry is that dim. Would it help me ? http://fmforums.com/forum/topic/84963-help-cant-open-my-file/
July 5, 201213 yr I would also suggest that your clients calling you is a good thing because file recovery is never a permanent solution for corruption
Create an account or sign in to comment