The information in this article applies to:
When you are using dynamic data exchange (DDE) commands programmatically, there may be times when you have to determine if a session of an application is already running. DDESetOption() and DDEInitiate() can be used determine if a application is running or not. =DDESetOption("Safety",.f.) && This turns off the message box && so that the program will && not be interrupted. openapp=DDEInitiate("Excel","System") IF openapp < 0 && Any negative number returned && by DDEInitiate() means that a && channel could not be opened. RUN/N C:\EXCEL\EXCEL.EXE ENDIF Additional query words: VFoxWin FoxWin 2.50 Keywords : FxinteropDde Version : 2.50 2.50a 2.50b Platform : WINDOWS Issue type : |
Last Reviewed: August 10, 1999 |