External Interfaces/API Reference | ![]() ![]() |
Request data from DDE server application
Syntax
data = ddereq(channel, item, format, timeout)
Arguments
data
A matrix that contains the requested data, empty if the function call failed.
channel
ddeinit
.
item
format
The first element indicates a Windows clipboard format to use for the request. MATLAB supports only Text format, which corresponds to a value of 1.
The second element of the format array specifies the type of the resultant matrix. The valid types are NUMERIC
(the default, corresponding to a value of 0) and STRING
(corresponding to a value of 1).
The default format array is [1 0].
timeout
Description
ddereq
requests data from a server application via an established DDE conversation. ddereq returns a matrix containing the requested data or an empty matrix if the function is unsuccessful.
Example
% Request a matrix of cells from Excel. mymtx = ddereq(channel, 'r1c1:r10c10');
![]() | ddepoke | ddeterm | ![]() |