Group Abstract Group Abstract

Message Boards Message Boards

Exception handling in Mathematica

Posted 7 years ago
POSTED BY: Andrew Burnett
2 Replies
Posted 7 years ago
POSTED BY: Andrew Burnett

Hey Andrew, I tried here.. and.. you could use the following code

test = Quiet[Import[SystemDialogInput["FileOpen"]]];
If[FailureQ@test, "Please, select a file to continue", test]
Out[2] = "Please, select a file to continue"
POSTED BY: Estevao Teixeira
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard