StopServerDDE

Description

Causes your application to stop acting as a DDE server application. Any subsequent requests from a DDE client application fail.

Syntax

StopServerDDE ( { windowname, } applname, topic )

Argument

Description

windowname (optional)

The name of the server window. The default is the current window. If you have more than one server window, windowname is required.

applname

The DDE name for your PowerBuilder application.

topic

A string whose value is the topic you declared when you called StartServerDDE.


Return value

Integer.

Returns 1 if it succeeds. If an error occurs, StopServerDDE returns -1, meaning the DDE server was not started. If any argument's value is null, StopServerDDE returns null.

Caution

The arguments applname and topic must match the arguments in a prior StartServerDDE call.

Examples

This statement causes the PowerBuilder application MyPBApp to stop acting as a server:

StopServerDDE(w_emp, "MyPBApp", "System")

See also

StartServerDDE