Generic Function | Package: dde | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version

## execute-command

Arguments: topic command-string

This generic function is invoked when another application sends the Lisp DDE server a command to execute. You may write methods on this generic function to execute arbitrary commands as appropriate. This method's action can depend on the particular topic name, which is always a keyword symbol. The value returned by this generic function can be retrieved later by the application if it sends a request with the :command-result item for this topic.

For the special topic :eval, the built-in method below executes the command string as a lisp form. Your own execute-command methods for a runtime application should do some sort of command execution that you implement.

    (defmethod execute-command ((topic (eql :eval)) command-string)
       (let ((*read-tolerant* t))
          (eval (read-from-string command-string))))

See dde.htm for information about DDE support.

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version