Activates a DDE server application program started by DDE.APP_BEGIN.
DDE.APP_FOCUS (AppID)
Parameter |
Type |
Description |
---|---|---|
AppID |
PLS_INTEGER |
application identifier returned by DDE.APP_BEGIN |
The application can also be activated in standard Microsoft Windows fashion, such as by clicking within the application window.
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.
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;