Originally Posted By: Wims
$!error can be used instead of $+, it's simple enough and working, which is what matters to me.
Still not intuitive.

Originally Posted By: Wims
If you select a file $error, the complete filename will be returned (e.g. C:\$error). I don't think $sfile can possibly returns "$error" for a valid filename.
True. I have tried to think of a counter example, but cannot create one.

If $sfile returns "$error" then, since this is the only way it can start with $, I would personally test for this with:
Code:
var %f $sfile(C:\)
if ($left(%f,1) == $) return