DDEInitiate $variable,service,topic[,onErrorLabel:]
Where:
$variable | is the name of the variable that receives the DDE channel number. Subsequent DDE script commands reference the channel number created by DDEInitiate. |
service | is the name of the DDE application for this conversation. |
topic | is the name of the DDE topic for this conversation. |
onErrorLabel: | is a label that execution transfers to if an error occurs. |
The DDEInitiate command begins a Dynamic Data Exchange (DDE) conversation between TN3270 Plus and another application. The DDE conversation allows data to be exchanged between TN3270 Plus and the other application.
Example
DDEInitiate $CHANNEL,"EXCEL","Sheet2"
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:
TN3270 Plus is continually being improved. To learn more about the latest enhancements, please review our Version History web page.