Navigation:  Language Reference > App A - DDE, OLE, and OCX > DDE Procedures >====== DDECLOSE (terminate DDE server link) ====== Previous pageReturn to chapter overviewNext page

DDECLOSE( channel )

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

DDESERVER