Description: | Executes an application synchronously. Control is not returned to the invoking program until the executed application terminates. (Note that the form remains active, it is just the invoking code that waits for the application to terminate.) |
Used in controls: | None. |
Used in objects: | Form |
Parameters: | 1. VT_BSTR - CommandLineX(8192) 3. [VT_I4 - ReturnValueS9(9) COMP-5] |
Description of Parameters: | CommandLine: The command line for the application to be executed. ShowWindow: The manner in which the application should be invoked. ReturnValue: The value that is returned from the command. |
Return value: | None. |
Example: | Shows how to start the Windows Notepad with the autoexec.bat file loaded. WORKING-STORAGE SECTION. 01 Command-Line PIC X(128). PROCEDURE DIVISION. MOVE "Notepad c:\autoexec.bat" TO Command-Line INVOKE MainForm "ExecuteSync" USING Command-Line POW-SWSHOWNORMAL |
Backward compatibility | None. |