Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Syntax 2: For DDE requests via an open channel – PB Docs 2019 – PowerBuilder Library

Syntax 2: For DDE requests via an open channel – PB Docs 2019

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

Argument

Description

location

A string whose value is the location of the data you
want returned. The format of the location depends on the DDE
application that will receive the request.

target

A PowerBuilder string variable into which the returned
data will be placed.

handle

A long that identifies the channel to the DDE server
application. The OpenChannel function returns handle when you
call it to open a DDE channel.

windowhandle (optional)

The handle to the window that is acting as the DDE
client. Specify this parameter to control which window the
data is returned to when you have more than one open
window.

bAnsi

(optional)

A boolean identifying whether the string to get from the
DDE server is in ANSI format. If bAnsi is NULL, false, or
empty, PowerBuilder will first try to get the DDE data as a
UNICODE formatted string. If bAnsi is true, PowerBuilder will
try to get the DDE data as an ANSI formatted string.

Return value

Integer.

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

-1 — Link was not started

-2 — Request denied

-9 — Handle is null

Usage

When using DDE, your PowerBuilder application must have an open
window, which will be the client window. For this syntax, you can
specify the client window with the windowhandle argument.

Before using this syntax, call OpenChannel to establish a DDE
channel.

For more information about DDE channels and warm and cold links,
see the ExecRemote
function.

Examples

These statements ask the channel identified by handle (a Microsoft
Excel worksheet) to get the data in row 1 column 2 and save it in a
PowerBuilder string called ls_ProfData. GetRemote utilizes the warm link
established by the OpenChannel function:

The following example is similar to the previous one. However, it
specifically associates the DDE channel with the window w_rpt:

See also

CloseChannel

ExecRemote

OpenChannel

SetRemote


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x