Skip to content

TRunCommandEventCode

Enumeration for the various stages in a process run cycle.

Declaration

Source position: process.pp line 69

type
  TRunCommandEventCode = (RunCommandIdle,RunCommandReadOutputString,
                        RunCommandReadOutputStream,RunCommandFinished,
                        RunCommandException)

Values

Value Description
RunCommandIdle No data was available for reading.
RunCommandReadOutputString Output from the command was read as a string.
RunCommandReadOutputStream Output from the command was read.
RunCommandFinished The command finished.
RunCommandException An error happened during reading of the command.

Description

TRunCommandEventCode is an enumerated type indicating the stage at which a process is during the RunCommandLoop call, reported through the TProcess.OnRunCommandEvent event handler.

See also

Name Description
TProcess.OnRunCommandEvent Event handler, called when RunCommandLoop is executing.
TProcess.RunCommandLoop Execute command and collect output in strings.