evil2win Posted July 30, 2012 Share Posted July 30, 2012 (edited) I would appreciate any help with this problem I'm having. I am designing a dialogue box and need to be able to access and read a text file from a directory. Using lisp I always used the "getfiled". In the DCL dialogue box I'm designing I put an "edit box" and tried to call the "getfiled" command when it was triggered, but it doesn't work. Can anyone tell me where I'm going wrong? this is the line of code in the lisp routine: (action_tile "eb1" "(setq tagfile (getfiled "Select target file" "c:" "txt" 0 ))" ) Thanks Edited July 31, 2012 by evil2win Quote Link to comment Share on other sites More sharing options...
Stefan BMR Posted July 30, 2012 Share Posted July 30, 2012 Each double quote (within action expression) must be preceded by a backslash. (action_tile "eb1" "(setq tagfile (getfiled \"Select target file\" \"c:\\" \"txt\" 0 ))" ) Quote Link to comment Share on other sites More sharing options...
evil2win Posted July 30, 2012 Author Share Posted July 30, 2012 very good!!...thanks a lot. Now I just have to work on getting the dialogue box to come up as soon as the edit box is selected....right now it comes up once the DCL has been accepted Quote Link to comment Share on other sites More sharing options...
SLW210 Posted July 31, 2012 Share Posted July 31, 2012 evil2win, Please read the CODE POSTING GUIDELINES and edit your post to include the code in tags. No need to post more than one thread on the same question. I deleted the other thread. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.