DDERequest - request text from a DDE application server

Return to Introduction  Previous page  Next page

$return = DDERquest($variable,item[,onErrorLabel:])

Where:

$returnis a variable that receives the result of the request..
$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.
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

$result = DDERequest($channel,"R1C1")

 

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:

 

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.