DDEExecute - send a command to a DDE Server application

Return to Introduction  Previous page  Next page

DDEExecute  $variable,item[,onErrorLabel:]

Where:

$variableis the variable containing the DDE channel number. The DDE channel is established by the DDEInitiate command.
itemis the command sent to the DDE server application.
onErrorLabel:is a label that execution transfers to if an error occurs.

 

 

The DDEExecute command sends a command to a Dynamic Data Exchange (DDE) server application.

Example

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

 

 

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:

 

DDE

DDEInitiate

DDEPoke

DDERequest

DDETerminate


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