Causes your application to stop acting as a DDE server application. Any subsequent requests from a DDE client application fail.
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.  | 
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.
This statement causes the PowerBuilder application MyPBApp to stop acting as a server:
StopServerDDE(w_emp, "MyPBApp", "System")