state與status的區別


status 指人時暗指相對的地位,指物時相當於 situation。situation 較狹義地指由環境綜合決定的特定時間上的狀態或情形。 

state 人或物存在或所處的狀態,和 condition 大體上可以互換使用。condition 指一定的原因/條件或環境所產生的特定情況。

以 Recordset 為例

Recordset 具有 Status 和 State 屬性,說明二者還是有區別的。

Recordset.Status 表示進行批處理后,當前記錄的情況。結果有:操作被取消,結果未被保存;記錄被鎖無法保存……。

Recordset.State 表示 Recordset 對象是打開的,還是關閉的,還是正在執行異步操作。

再舉例子

最近的國際形式如何?status。

水在標准大氣壓下 100 攝氏度時是什么狀態?state。

http://stackoverflow.com/questions/1162816/naming-conventions-state-versus-status

It depends on the context

State generally refers to the entire state of an entity - all its values and relationships at a particular point in time (usually, current)

Status is more of a time-point, say, where something is at in a process or workflow - is it dirty (therefore requiring saving), is it complete, is it pending input, etc

這取決於使用環境。 State一般囊括了一個實體的所有狀態。 Status更像是一個時間點,比如在一個流程中,這個對象是dirty、complete或者pending input等等。

 

http://english.stackexchange.com/questions/12958/status-vs-state

 

Can anyone explain what the difference between status and state is when I talk about the condition or situation of an object?

Here's what I got from Longman English Dictionary.

status: a situation at a particular time, especially in an argument, discussion etc.

state: the physical or mental condition that someone or something is in

or example, how do you interpret these two sentences: 

What is the current status of this project? 

What is the current state of this project?

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM