NEW DDECONV

From STX Wiki
< Programmer Guide‎ | Shell Items‎ | DDECONV
Revision as of 15:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

NEW DDECONV

See SET DDECONV for the SET commands and DDECONV Item Attributes for a list of attributes.

NEW DDECONV name service topic [ /G ]

Create a DDE conversation.

name
The item name of the established conversation.
service
The service to connect to (e.g. 'Excel').
topic
The the topic to connect to (e.g. 'System').

If the command fails, check the following: Failure occurs if the application supplying the service is not running, or the topic does not exist. You can check if the topic exists by establishing a conversation with the service on the 'System' topic and getting the item 'topics', a tab-delimited list of topics currently available on that server.

/G
Garbage collection. If specified, the item is automatically deleted when exiting the macro.

Example:

   NEW DDEConv myExcelConv 'Excel' '[stxdata.xls]Sheet1'

Establishes a conversation with Excel on the topic '[stxdata.xls]Sheet1' which is an open file. The shell creates a new ddeconv, adds it to the server, and then connects.

The service (in the example Excel) must already be active/running. Automatic startup of services has not yet been implemented.

Navigation menu

Personal tools