version 6.0
WinExec (command) Integer
| Parameter | Type | Description | |
| command | String | Command for Windows to carry out | |
| Function result | Integer | Error code |
Description
The command WinExec allows you to launch a Windows application from 4th Dimension.
Example
ChannelNum:= DDE_Initiate("Excel";"SYSTEM")
If(ChannelNum<0)
` If Excel does not respond
WinExec("Excel")
` Launching the Excel application
ChannelNum:= DDE_Initiate("Excel";"SYSTEM")
End if
If(ChannelNum<0)
ALERT("Excel application does not respond or could not be found")
Else
...
End if