A script-enabled browser is required for this page to function properly.

DDE.APP_FOCUS

Description

Activates a DDE server application program started by DDE.APP_BEGIN.

Syntax

DDE.APP_FOCUS (AppID)

Parameters

Parameter

Type

Description

AppID

PLS_INTEGER

application identifier returned by DDE.APP_BEGIN

Notes

The application can also be activated in standard Microsoft Windows fashion, such as by clicking within the application window.

DDE.APP_FOCUS Restrictions

To activate a DDE server application, the DDE server application must have been previously started by calling DDE.APP_BEGIN.

When running DDE from Forms on the web, the DDE conversation is taking place on the application server tier. Therefore, switching focus to the application server will give the DDE server focus on the applciation server (not on the client browser machine). We suggest that you not use this Built-in for that purpose.

DDE.APP_FOCUS Examples

DECLARE
 AppID PLS_INTEGER;
BEGIN
 /* Start Microsoft Excel application in fullscreen mode. */
 AppID := DDE.App_Begin('C:/excel/excel.exe,
     DDE.APP_MODE_MAXIMIZED);
 /* Activate the application window. */
 DDE.App_Focus(AppID);
END;