DDERequest - request text from a DDE application server

Return to Introduction  Previous page  Next page

DDERquest  $variable,item,$result[,onErrorLabel:]

Where:

$variableis the variable containing the DDE channel number. The DDE channel is established by the DDEInitiate command.
itemis the name of the item being requested.
$resultis a variable that receives the result of the request.
onErrorLabel:is a label that execution transfers to if an error occurs.

 

The DDERequest command receives text from a Dynamic Data Exchange (DDE) server application.

Example

DDERequest $CHANNEL,"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, 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

DDEInitiate  $CHANNEL,"EXCEL","Sheet2"

DDERequest   $CHANNEL,"R1C1",$RESULT

DDEExecute   $CHANNEL,"[QUIT()]"

DDETerminate $CHANNEL

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.