f$Execute (f$Ausführen)
f$Execute (f$Ausführen)
Execute another system application under Microsoft Windows. The application can be executed in two ways:
Through a document. Only the document name is entered for this. The appropriate program must be indicated via a file extension. The advantage of this is that the path and name of the executing program do not have to be entered.
Via a program. The full program name (including path) is entered for this. The document can also be entered.
The application is executed asynchronously, the decision tables continue to be executed without waiting for the application to end. The execution stops with the function f$WaitExecute, however documents cannot be directly entered there.
This function can be used, for example, to display additional information or explanations for a dialog, e.g. an image, construction sketch or text document.
Please note that, when entering a path in the file name, the character "\" must be entered twice ("\\").
Syntax: | Status = f$Execute( Command, File [, Parameter [, Mode]] ) | ||
| Argument | Type | Meaning |
| Command | String | One of the key words: |
| File | String | File (or program) to be called |
| Parameter | String | Argument to the application (optional) |
| Mode | Integer | Processing mode: |
Result: | Integer | Error status (-1=successful) | |
Examples: | Status = f$Execute( 'print', 'Text.txt' ) Status = f$Execute( 'open', 'c:\\windows\\notepad.exe', 'Text.txt' ) | ||