An accessor which can perform a request transaction or a poke transaction.
win32
dde-item conversation item &key format type errorp => result
setf (dde-item conversation item &key format type errorp) result => result
conversation⇩ |
A conversation object. |
item⇩ |
A string or symbol. |
format⇩ |
A clipboard format specifier. |
type⇩ |
A keyword. |
errorp⇩ |
A boolean. |
result⇩ |
A boolean. |
result⇩ |
A boolean. |
The accessor dde-item
performs a request transaction when read. It performs a poke transaction when set.
The transaction occurs on conversation, for the item item with format format and type type.
To illustrate, the following dde-request command:
(dde-request conversation item :format format :type type :errorp errorp)
can also be issued using dde-item
as follows:
(dde-item conversation item :format format :type type :errorp errorp)
Similarly, the following dde-poke command:
(dde-poke conversation item data :format format :type type :errorp errorp)
can be issued using dde-item
as follows:
(setf (dde-item conversation item :format format :type type :errorp errorp) data)
except that the setf
form always returns data.
Upon success, this function returns a result of t
. On failure, the behavior depends on errorp. If errorp is t
(the default value), LispWorks signals an error. If it is nil
, the function returns nil
to indicate failure.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:09