JVCL Help:TJvCreateProcess.State

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Returns the current operating mode of the TJvCreateProcess component.


Pascal

 propertyState: TJvCPSState;


Description

Examine State to determine the current operating mode of the TJvCreateProcess component. State determines what can be done with the component, such as starting a new process or closing a started process.
Initially the state of the component is psReady: it means that you can call Run to start an application, but you can't call CloseApplication or Terminate to stop a running application.
Starting an application with Run changes the state to psWaiting (if WaitForTerminate is set to True) or to psRunning (if WaitForTerminate is False).
If the state is psWaiting, it means that the component is waiting for a process to end. If the process ends an OnTerminate event is fired, and the state changes to psReady. You can call StopWaiting to stop waiting for the process to end, it will change the state from psWaiting to psReady. You can also call CloseApplication or Terminate to stop the running application, but you can not call Run to start a new application.
If the state is psRunning, it means that the component has started an application. You can call CloseApplication or Terminate to stop the running application; you can also call Run to start a new Application.


See Also

TJvCreateProcess.CloseApplication


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page