There is a bug in Origin 2015 which broke several of my macros:
The LabTalk command "GetFileName" does not work correctly. It opens the file dialog, but after chosing a file, the vaiables %A(should contain the file name) and %B (should contain the full path to the file) contain only garbage or nothing.
There is a bug in 2015 SR0 with the LT getfile command that causes %A & %B to not work correcttly when files are on a different drive than your main drive. It is fixed in the next SR. I assume you have the same bug even if using the getfilename command.
Interestingly, the X-Function dlgfile returns the full path with file name in the string "fname$", but also sets the variable %A correctly to the file name only. This is not mentioned in the documentation.
I would be reluctant to rely long term on dlgfile assigning %A to the file name as, indeed, it isn't mentioned in the docs and may be subject to change.