GetRemote

Asks a DDE server application to provide data and stores that data in the specified variable. There are two ways of calling GetRemote, depending on the type of DDE connection you have established.

To

Use

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

Syntax 1 For single DDE requests

Request data from a DDE server application after you have opened a channel (called a warm link)

Syntax 2 For DDE requests via an open channel


Syntax 1 For single DDE requests

Description

Asks a DDE server application to provide data and stores that data in the specified variable without requiring an open channel. This syntax is appropriate when you will make only one or two requests of the server.

Syntax

GetRemote ( location, target, applname, topicname )

Returns

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


Syntax 2 For DDE requests via an open channel

Description

Asks a DDE server application to provide data and stores that data in the specified variable 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

GetRemote ( location, target, handle {, windowhandle } )

Returns

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