Jump to content

Access getfiled dialogue box from a DCL dialogue box


evil2win

Recommended Posts

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 by evil2win
Link to comment
Share on other sites

Each double quote (within action expression) must be preceded by a backslash.

(action_tile "eb1" "(setq tagfile (getfiled \"Select target file\" \"c:\\" \"txt\" 0 ))" )

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...