Syntax |
DDETerminate channel |
Description |
Closes the specified DDE channel. |
Comments |
The channel parameter is an Integer containing the DDE channel number returned from DDEInitiate. An error will result if channel is invalid. All open DDE channels are automatically terminated when the script ends. |
Example |
This example sets and retrieves a cell in an Excel spreadsheet. Sub Main() Dim cmd,q,ch%
Id =
Shell("c:\excel5\excel.exe",3) 'Start Excel.
On Error Resume Next
DDEPoke
ch%,"R1C1","$1000.00" 'Send value to cell.
DDETerminate ch% |
See Also |
DDEExecute (statement); DDEInitiate (function); DDEPoke (statement); DDERequest, DDERequest$ (functions); DDESend (function); DDETerminateAll (statement); DDETimeout (statement). |
D |