MATLAB Function Reference
  Go to function:
    Search    Help Desk 
ddeexec    Examples   See Also

Send string for execution

Syntax

Description

ddeexec sends a string for execution to another application via an established DDE conversation. Specify the string as the command argument.

If you omit optional arguments that are not at the end of the argument list, you must substitute the empty matrix for the missing argument(s).

Arguments

rc
Return code: 0 indicates failure, 1 indicates success.
channel
Conversation channel from ddeinit.
command
String specifying the command to be executed.
item (optional)
String specifying the DDE item name for execution. This argument is not used for many applications. If your application requires this argument, it provides additional information for command. Consult your server documentation for more information.
timeout (optional)
Scalar specifying the time-out limit for this operation. timeout is specified in milliseconds. (1000 milliseconds = 1 second). The default value of timeout is three seconds.

Examples

Given the channel assigned to a conversation, send a command to Excel:

Communication with Excel must have been established previously with a ddeinit command.

See Also

ddeadv      Set up advisory link

ddeinit     Initiate DDE conversation

ddepoke     Send data to application

ddereq      Request data from application

ddeterm     Terminate DDE conversation

ddeunadv    Release advisory link



[ Previous | Help Desk | Next ]