Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

DDEExec

  • Last UpdatedJul 18, 2023
  • 1 minute read

Executes a command in an external Windows application running on the same computer. With this function, you can control other applications that support DDE. Refer to the documentation provided with the external Windows application to determine if DDE is supported and what functions can be called.

You cannot use DDEExec() to call macros on a remote computer or to call Access SQLs. For these calls, Network DDE needs to pass the sDocument argument, so you need to use the DDEh... functions, passing sDocument in the DDEhInitiate() function.

Syntax

DDEExec(sApplication, sCommand)

sApplication:

Application name (.EXE filename), for example, "WinWord".

sCommand:

The command that the application will execute.

Return Value

1 (one) if successful, otherwise an error code is returned.

DDEPost, DDERead, DDEWrite, DDEhExecute

Example

/* Instruct the Excel application to recalculate its spreadsheet
immediately. */
DDEExec("Excel","[Calculate.Now()]");

See Also

Dynamic Data Exchange Functions

In This Topic
TitleResults for “How to create a CRG?”Also Available in