| 4D v15.4PROCESS PROPERTIES | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  | 
    4D v15.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 | 
| Restore Process | 倍長整数 | -21 | 
| Serial Port Manager | 倍長整数 | -6 | 
| Server interface process | 倍長整数 | -15 | 
| 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) //変数を初期化
 C_LONGINT(vState)
 C_LONGINT(vTimeSpent)
 PROCESS PROPERTIES(Current process;vName;vState;vTimeSpent)On Exitデータベースメソッドの例題参照
	プロダクト: 4D
	テーマ: プロセス
	番号: 
        336
        
        
        
	
	変更: 4D v11 SQL Release 3
	ランゲージリファレンス ( 4D v15.4)
	ランゲージリファレンス ( 4D v15.3)
 コメントを追加
コメントを追加