DDETerminate($variable)
Where:
$variable | is the variable containing the DDE channel number. The DDE channel is established by the DDEInitiate command. |
The DDETerminate command closes the Dynamic Data Exchange (DDE) channel.
Example
DDETerminate($channel)
Sample Script
' This script starts Microsoft Excel with a test spreadsheet,
' gets the data in row 1 column 1 of the spreadsheet, terminates Excel,
' and types the requested text into the terminal emulation screen at
' the current cursor location.
'
Run("C:\Program Files\Microsoft Office\Office11\excel.exe ""D:\Test.xls""")
Wait(1000)
$channel = DDEInitiate("EXCEL","Sheet2")
$result = DDERequest($channel,"R1C1")
DDEExecute($channel,"[QUIT()]")
DDETerminate($channel)
type($result)
See Also:
TN3270 Plus is continually being improved. To learn more about the latest enhancements, please review our Version History web page.