WinExec

4D - Documentation   Français   English   German   DDE_Tools, Contents   DDE_Tools, Index   Back   Previous   Next

version 6.0


WinExec (command) Integer

ParameterTypeDescription
commandStringCommand for Windows to carry out
Function resultIntegerError 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

4D - Documentation   Français   English   German   DDE_Tools, Contents   DDE_Tools, Index   Back   Previous   Next