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

GetCommandDDE – PB Docs 2019 – PowerBuilder Library

GetCommandDDE – PB Docs 2019

GetCommandDDE

PowerScript function

Description

Obtains the command sent by the client application when your
application is a DDE server.

Syntax

Argument

Description

string

A string variable in which GetCommandDDE will store the
command

Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs (such as the
function was called in the wrong context). If string is null,
GetCommandDDE returns null.

Usage

When a DDE client application sends a command to your application,
the action triggers a RemoteExec event in the active window. In that
event’s script, you call GetCommandDDE to find out what command has been
sent. You decide how your application will respond to the command.

To enable DDE server mode, use the function StartServerDDE, in which
you decide how your application will be known to other
applications.

Examples

This excerpt from a script for the RemoteExec event checks to see if
the action requested by the DDE client is Open Next Sheet. If it is, the
DDE server opens another instance of the sheet DataSheet. If the requested
action is Shut Down, the DDE server shuts itself down. Otherwise, it lets
the DDE client know the requested action was invalid.

The variables ii_sheetnum and i_DataSheet[ ] are instance variables
for the window that responds to the DDE event:

This script that follows uses the local variable ls_Action to store
the command sent by the client application:

See also

GetCommandDDEOrigin

StartServerDDE

StopServerDDE


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