DDETerminate - close a DDE channel

Return to Introduction  Previous page  Next page

DDETerminate  $variable

Where:

$variableis 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        

* The following script starts Microsoft Excel with a test spreadsheet.

* "some data" is then put into row 1 column 1 of the spreadsheet.

* The spreadsheet is saved and Excel is closed.

* The DDE conversation is terminated.

*

Run "C:\Program Files\Microsoft Office\Office11\excel.exe ""D:\Test.xls"""

Wait 1000

DDEInitiate  $CHANNEL,"EXCEL","Sheet2"

DDEPoke      $CHANNEL,"R1C1","some data"

DDEExecute   $CHANNEL,"[SAVE()][QUIT()]"

DDETerminate $CHANNEL

exit

 

See Also:

 

DDEInitiate

DDEExecute

DDEPoke

DDERequest


TN3270 Plus is continually being improved. To learn more about the latest enhancements, please review our Version History web page.