| 4D v18PROCESS PROPERTIES | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D v18
 PROCESS PROPERTIES 
         | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PROCESS PROPERTIES ( process ; procName ; procState ; procTime {; procMode {; uniqueID {; origin}}} ) | ||||||||
| 引数 | 型 | 説明 | ||||||
| process | 倍長整数 |   | プロセス番号 | |||||
| procName | 文字 |   | プロセス名 | |||||
| procState | 倍長整数 |   | プロセスの状態 | |||||
| procTime | 倍長整数 |   | プロセスの稼働時間 (Tick) | |||||
| procMode | ブール, 倍長整数 |   | TRUE: 表示, FALSE: 非表示 | |||||
| uniqueID | 倍長整数 |   | ユニークなプロセス番号 | |||||
| origin | 倍長整数 |   | プロセスの発生源 | |||||
PROCESS PROPERTIESコマンドはprocessに渡したプロセス番号を持つプロセスに関する様々な情報を返します。
注: プロセスが存在しない場合、つまりprocess 引数に1からCount tasksまでの番号を渡さなかった場合、PROCESS PROPERTIES は変数パラメータの変更を行いません。
このコマンド呼出し後に:
| 定数 | 型 | 値 | 
| Does not exist | 倍長整数 | -100 | 
| Aborted | 倍長整数 | -1 | 
| Executing | 倍長整数 | 0 | 
| Delayed | 倍長整数 | 1 | 
| Waiting for user event | 倍長整数 | 2 | 
| Waiting for input output | 倍長整数 | 3 | 
| Waiting for internal flag | 倍長整数 | 4 | 
| Paused | 倍長整数 | 5 | 
| 定数 | 型 | 値 | コメント | 
| Apple event manager | 倍長整数 | -7 | |
| Backup process | 倍長整数 | -19 | |
| Cache manager | 倍長整数 | -4 | |
| Client manager process | 倍長整数 | -31 | |
| Compiler process | 倍長整数 | -29 | |
| 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 | |
| HTTP Log flusher | 倍長整数 | -58 | |
| Indexing process | 倍長整数 | -5 | |
| Internal 4D server process | 倍長整数 | -18 | |
| Internal timer process | 倍長整数 | -25 | |
| Log file process | 倍長整数 | -20 | |
| Main 4D process | 倍長整数 | -39 | |
| 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 | |
| SOAP process | 倍長整数 | -33 | |
| SQL Method execution process | 倍長整数 | -24 | |
| Web process on 4D remote | 倍長整数 | -12 | |
| Web process with no context | 倍長整数 | -3 | |
| Web server process | 倍長整数 | -13 | |
| Worker process | 倍長整数 | 5 | ユーザーによってローンチされたワーカープロセス | 
次の例は、変数vName, vState, vTimeSpentに現在のプロセスのプロセス名、プロセスステータス、プロセス時間を返します:
 C_TEXT(vName) ` Initialize the variables
 C_LONGINT(vState)
 C_LONGINT(vTime)
 PROCESS PROPERTIES(Current process;vName;vState;vTimeSpent)Semaphoreの例題参照
カレントプロセスの表示状態と実行モードを調べたい場合を考えます。以下のようの書く事ができます:
 C_TEXT(vName)
 C_LONGINT(vState)
 C_LONGINT(vTime)
 C_LONGINT(vFlags)
 C_BOOLEAN(isVisible)
 C_BOOLEAN(isPreemptive)
 PROCESS PROPERTIES(Current process;vName;vState;vTime;vFlags)
 isVisible:=vFlags?? 0 //表示状態であればtrue
 isPreemptive:=vFlags?? 1 //プリエンプティブモードであればtrue
									Count tasks
									
									Get process activity
									
									Process state
									
									プリエンプティブ4Dプロセス
									
	プロダクト: 4D
	テーマ: プロセス
	番号: 
        336
        
        
        
	
	変更: 4D v11 SQL Release 3
	変更: 4D v15 R5
	
	
	ランゲージリファレンス ( 4D v18)
	
	
	
 コメントを追加
コメントを追加