DDE - performs a complete DDE conversation in a single command

Return to Introduction  Previous page  Next page

DDE        {POKE | REQUEST | EXECUTE},service,topic,item{,data | $result}[,onErrorLabel:]

Where:

POKEsends text  to the DDE server application.
REQUESTrequests text  from the DDE server application.
EXECUTEsends a command to the DDE server application.
serviceis name of the DDE application for this conversion.
topicis name of the DDE topic for this conversion.
itemis the name of the DDE item for this conversation.
datais a string of text to be sent to the DDE server application for a POKE operation.
$resultis a variable that receives the result of a REQUEST operation.
onErrorLabel:is a label that execution transfers to if an error occurs.

 

The DDE command is a shorthand command that performs a complete DDE conversation in a single command. It performs the functions of DDEInitiate, one of DDEPoke, DDERequest or DDEExecute, and DDETerminate. Use this command if you want to perform a single DDE function. 

Examples

DDE REQUEST,"EXCEL","Sheet2",R1C1,$RESULT

 

 

Sample Script

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

* gets the data in row 1 column 1 of the spreadsheet and types it into

* the terminal emulation screen at the current cursor location.

*

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

Wait 1000

DDE REQUEST,"EXCEL","Sheet2",R1C1,$RESULT

type $RESULT

exit

 

See Also:

 

DDE

DDEExecute

DDEInitiate

DDEPoke

DDETerminate


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