KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Checking the process state based on the name of the process
PRODUCT: 4D | VERSION: | PLATFORM: Mac & Win
Published On: December 4, 2003

Compatibility: Version 6.8.x and 2003.x

The command Process state returns the state of the process whose number you pass in process. However, you can also check the process state even if you have only its process name. The following is a simple method that will return the process state based on the given process name:

C_LONGINT($0)
C_STRING(255;$1)
$0:=Process state(Process number($1))