Syntax
DDETerminate ChanNum
Remarks
Closes the specified dynamic-data exchange (DDE) channel. To free system resources, you should close channels you aren't using.
Argument | Explanation | |
ChanNum | The channel number of the DDE conversation as returned by DDEInitiate(). If ChanNum isn't an open channel number, an error occurs. |
Example
This example opens a DDE channel to request a list of topics from Microsoft Excel. The instructions insert the requested list into the active Word document and then close the channel. On the Macintosh, the application name used in the DDEInitiate() instruction should be MacID$("XCEL") rather than "Excel".
channel = DDEInitiate("Excel", "System") a$ = DDERequest$(channel, "Topics") Insert a$ DDETerminate channel
See Also
DDEExecute, DDEInitiate(), DDEPoke, DDERequest$(), DDETerminateAll