DDEConnect opens a DDE
connection.
Syntax
CALL ui.Interface.frontCall("WINDDE","DDEConnect",
[ program, document, encoding ], [result] )
- program is the name of the DDE application.
- document is the document that is to be opened.
- encoding is an optional parameter. It allows to force the encoding to use
between ASCII and wide char/unicode. When not specified, WinDDE will try to retrieve the correct
encoding by itself. Possible values are:
- result is an integer variable receiving the status.
- result is TRUE if the function succeeded, FALSE otherwise.
- If the function failed, use DDEError to
get the description of the error.
Warnings
- If the function failed with DMLERR_NO_CONV_ESTABLISHED, then the DDE application was probably
not running. Use the execute or shellexec front call to start the DDE application.
- In Microsoft™ Office 2010, the use of DDE is disabled
by default. You need to uncheck Ignore other applications that use Dynamic Data
Exchange(DDE) in advanced options, otherwise DDEConnect will fail.