DDEConnect

DDEConnect opens a DDE connection.

Syntax

Important: This feature is deprecated, its use is discouraged although not prohibited.
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:
    • UNICODE
    • ASCII
  • result is an integer variable receiving the status.
  • result is TRUE if the function succeeded, FALSE otherwise.
  • If the function fails, use DDEError to get the description of the error.

Warnings

  • If the function fails 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.