OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: honkinberry on February 13, 2019, 09:56:47 AM

Title: Possible bug with dcl-SelectFiles and network paths
Post by: honkinberry on February 13, 2019, 09:56:47 AM
I'm not sure if there is a logic to this functionality.
But when I use dcl-SelectFiles and select a Network file, it gets only a single backslash at the beginning.

Compare:
(dcl-SelectFiles)
"\\Machine\\folder\\file.txt"
(getfiled "" "" "" 0)
"\\\\Machine\\folder\\file.txt"

I'm getting errors attempting to feed a path with only a single leading backslash to the Insert command, and adding the second backslash at the beginning remedies this.
So as I said, not sure if this behavior is by design or a boo-boo.

Anyway, have an otherwise pleasant day!

--J
Title: Re: Possible bug with dcl-SelectFiles and network paths
Post by: owenwengerd on February 14, 2019, 08:37:04 AM
It's a bug, now fixed for the next build. Thanks for reporting!
Title: Re: Possible bug with dcl-SelectFiles and network paths
Post by: honkinberry on February 19, 2019, 12:01:28 PM
You're the best, thanks!

--J