StopServerDDE
PowerScript function
Description
Causes your application to stop acting as a DDE server application.
Any subsequent requests from a DDE client application fail.
Syntax
|
1 |
StopServerDDE ( { windowname, } applname, topic ) |
|
Argument |
Description |
|---|---|
|
windowname (optional) |
The name of the server window. The default is the current |
|
applname |
The DDE name for your PowerBuilder application. |
|
topic |
A string whose value is the topic you declared when you |
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:
|
1 |
StopServerDDE(w_emp, "MyPBApp", "System") |
See also