| **Navigation:**  [[introduction.htm|Language Reference]] > App A - DDE, OLE, and OCX > DDE Procedures >====== DDECLOSE (terminate DDE server link) ====== | [[ddeclient return dde client channel .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[ddeexecute send command to dde server .htm|{{btn_next_n.gif|Next page}}]] | | || **DDECLOSE(** //channel// **)** {{blk2blue.jpg|blk2blue.jpg}} | **DDECLOSE** | Closes an open DDE channel. | | //channel// | The label of the LONG integer variable containing the channel number--the value returned by the DDESERVER or DDECLIENT procedure. | The **DDECLOSE** procedure allows a DDE client program to terminate the specified //channel//. A //channel// is automatically terminated when the window which opened the //channel// is closed. **Errors Posted:** | 601 | Invalid DDE Channel | | 602 | DDE Channel Not Open | | 605 | Time Out | **Example:** **WinOne  WINDOW,AT(0,0,160,400)** **        END** **SomeServer LONG** ** CODE** ** OPEN(WinOne)** ** SomeServer = DDECLIENT('SomeApp','MyTopic') !Open as client** ** ACCEPT** ** END** ** ****DDECLOSE****(SomeServer)** **See Also:** [[ddeclient return dde client channel .htm|DDECLIENT]] [[ddeserver return dde server channel .htm|DDESERVER]]