View Full Version : Compare backslashes in directory path
daniel.111218
2007-03-02, 06:59 PM
I'm trying to write a lisp that sets the dwgprefix to just the first two folders and I can't figure out how to compare the backslash in the dwgprefix string and a backslash. "\" gives me malfomed string and "\\" gives me a syntax error any help would be much appreciated.
Dan
Tom Beauford
2007-03-02, 08:03 PM
try (chr 92)
kennet.sjoberg
2007-03-02, 08:04 PM
I'm trying to write a lisp that sets the dwgprefix to just the first two folders and I can't figure out how to compare the backslash in the dwgprefix string and a backslash. "\" gives me malfomed string and "\\" gives me a syntax error any help would be much appreciated.
Dan
Use double backslash when you need a single, AutoCad do not treat a backslash as your eyes.
(ascii "\\" )
(chr 92 )
: ) Happy Computing !
kennet
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.