SetRemote

Asks a DDE server application to accept data and store it in the specified location. There are two ways of calling SetRemote, depending on the type of DDE connection you have established.

To

Use

Make a single DDE request of a server application (a cold link)

Syntax 1 For single DDE requests

Make a DDE request of a server application when you have established a warm link by opening a channel

Syntax 2 For DDE requests via an open channel


Syntax 1 For single DDE requests

Description

Asks a DDE server application to accept data to be stored in the specified location without requiring an open channel. This syntax is appropriate when you will make only one or two requests of the server.

Syntax

SetRemote ( location, value, applname, topicname )

Returns

Integer. Returns 1 if it succeeds and a negative integer if an error occurs.


Syntax 2 For DDE requests via an open channel

Description

Asks a DDE server application to accept data to be stored in the specified location when you have already established a warm link by opening a channel to the server. A warm link, with an open channel, is more efficient when you intend to make several DDE requests.

Syntax

SetRemote ( location, value, handle {, windowhandle } )

Returns

Integer. Returns 1 if it succeeds and a negative integer if an error occurs.