ExecRemote

Asks a DDE server application to execute the specified command.

To send

Use

A single command to a DDE server application (a cold link)

Syntax 1 For sending single commands

A command to a DDE server application after you have opened a channel (a warm link)

Syntax 2 For commands over an opened channel


Syntax 1 For sending single commands

Description

Sends a single command to a DDE server application, called a cold link.

Syntax

ExecRemote ( command, applname, topicname )

Returns

Integer. Returns 1 if it succeeds. If it fails, it returns a negative integer.


Syntax 2 For commands over an opened channel

Description

Sends a command to a DDE server application when you have already called OpenChannel and established a warm link with the server.

Syntax

ExecRemote ( command, handle {, windowhandle } )

Returns

Integer. Returns 1 if it succeeds. If an error occurs, ExecRemote returns a negative integer.