| 4D v13.4PROCESS PROPERTIES | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  | 
    4D v13.4
 PROCESS PROPERTIES 
         | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PROCESS PROPERTIES ( process ; procName ; procState ; procTime {; procVisible {; uniqueID {; origin}}} ) | ||||||||
| 引数 | 型 | 説明 | ||||||
| process | 倍長整数 |   | プロセス番号 | |||||
| procName | 文字 |   | プロセス名 | |||||
| procState | 倍長整数 |   | プロセスの状態 | |||||
| procTime | 倍長整数 |   | プロセスの稼働時間 (Tick) | |||||
| procVisible | ブール |   | TRUE: 表示, FALSE: 非表示 | |||||
| uniqueID | 整数 |   | ユニークなプロセス番号 | |||||
| origin | 倍長整数 |   | プロセスの発生源 | |||||
PROCESS PROPERTIESコマンドはprocessに渡したプロセス番号を持つプロセスに関する情報を返します。
このコマンド呼出し後に:
| 定数 | 型 | 値 | 
| Aborted | 倍長整数 | -1 | 
| Delayed | 倍長整数 | 1 | 
| Does not exist | 倍長整数 | -100 | 
| Executing | 倍長整数 | 0 | 
| Hidden modal dialog | 倍長整数 | 6 | 
| Paused | 倍長整数 | 5 | 
| Waiting for input output | 倍長整数 | 3 | 
| Waiting for internal flag | 倍長整数 | 4 | 
| Waiting for user event | 倍長整数 | 2 | 
| 定数 | 型 | 値 | 
| _o_Web Process with Context | 倍長整数 | -11 | 
| Apple Event Manager | 倍長整数 | -7 | 
| Backup Process | 倍長整数 | -19 | 
| Cache Manager | 倍長整数 | -4 | 
| Client Manager Process | 倍長整数 | -31 | 
| Created from execution dialog | 倍長整数 | 3 | 
| Created from Menu Command | 倍長整数 | 2 | 
| Design Process | 倍長整数 | -2 | 
| Event Manager | 倍長整数 | -8 | 
| Execute on Client Process | 倍長整数 | -14 | 
| Execute on Server Process | 倍長整数 | 1 | 
| External Task | 倍長整数 | -9 | 
| Indexing Process | 倍長整数 | -5 | 
| Internal 4D Server Process | 倍長整数 | -18 | 
| Internal Timer Process | 倍長整数 | -25 | 
| Log File Process | 倍長整数 | -20 | 
| Main Process | 倍長整数 | -1 | 
| Method editor macro Process | 倍長整数 | -17 | 
| Monitor Process | 倍長整数 | -26 | 
| MSC Process | 倍長整数 | -22 | 
| None | 倍長整数 | 0 | 
| On Exit Process | 倍長整数 | -16 | 
| Other 4D Process | 倍長整数 | -10 | 
| Other User Process | 倍長整数 | 4 | 
| Process Server Interface | 倍長整数 | -15 | 
| Restore Process | 倍長整数 | -21 | 
| Serial Port Manager | 倍長整数 | -6 | 
| SQL Method Execution Process | 倍長整数 | -24 | 
| Web Process on 4D Remote | 倍長整数 | -12 | 
| Web Process with no Context | 倍長整数 | -3 | 
| Web server Process | 倍長整数 | -13 | 
注: 4Dの内部プロセスは負の値を返し、ユーザが作成したプロセスは正の値を返します。
プロセスが存在しない場合、つまり1からCount tasksまでの番号を渡さなかった場合、PROCESS PROPERTIESコマンドは変数パラメータの変更を行いません。
次の例は、変数vName, vState, vTimeSpentに現在のプロセスのプロセス名、プロセスステータス、プロセス時間を返します:
 C_TEXT(vName) ` Initialize the variables
 C_LONGINT(vState)
 C_LONGINT(vTime)
 PROCESS PROPERTIES(Current process;vName;vState;vTimeSpent)On Exitデータベースメソッドの例題参照
	プロダクト: 4D
	テーマ: プロセス
	番号: 
        336
        
        
        
	
	変更: 4D v11 SQL Release 3