DDEEXECUTE

Purpose:

Executes a command in another application.

Syntax:

DDEEXECUTE(chan, "command")

chan

-

An integer, the DDE channel number returned by DDEINITIATE.

"command"

-

A string, the command to execute.

Returns:

A 1 if successful; otherwise it returns 0 indicating an error.

Example:

chan = ddeinit("winword")

ddeexecute(chan, '[Insert "This is a DDE string"]')

ddeterm(chan)

 

establishes a DDE conversation with Word, inserts the text - This is a DDE string - at the current cursor location, then terminates the conversation.

Remarks:

When DADiSP acts as the server, the command string can be any valid DADiSP command. For example:

Integ(W1)

See Also:

DDEGETDATA

DDELINK

DDEPOKE

DDEREQUEST

DDESTATUS