Jump to content

Recommended Posts

Posted (edited)

In lisp what is the significance of backslash? For example for me to load a command from a DCL button I would write:

 

(action_tile "MKLINE" "(command \"line\")(done_dialog)")

 

I have had a look around and most people say that the character after the backslash is not taken into account?! I am a little foggy.

 

Thanks

Edited by monk
Posted

Is used in pair with following character to add special characters to strings. The ACTION_TILE function accept a string argument - therefore "\"" allow you to incluse the " character in string. Other examples: "\t" (tab), "\n" (new line) or "\\" (backslash).

Posted (edited)

Ah i understand!

 

But why for example does this not work?

 

(action_tile "MKLINE" "(command line)(done_dialog)")

Edited by monk
Posted

There are two errors on that excerpt (by the way, please edit your posts to add code tags).


    1. The call of command is not allowed while the dialog is still open.
    2. The name of command must be provided as a string.
    3. [s](command line)[/s]
      (command "line")

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...