I have a function called processFile[fname_]...
The function works correctly when called as
processFile[fileName]
However, I want to call it thus:
fname = SystemDialogInput["FileOpen"];
If[fname != $Canceled, processFile[fname], "Error"]
When I select cancel, the If function returns Error, but when I select a file the If function returns
If["/Users/andy/Downloads/pqs.csv" != $Canceled, processFile[fname], "Error"]
What am I doing wrong?
Cheers Andy