欄位函數
這些函數僅可用於圖表運算式。
欄位函數會傳回識別欄位選項不同層面的整數或字串。
使用各個函數的下拉式清單,查看各函數的簡短描述及語法。按一下語法描述中的函數名稱以取得更多詳細資料。
計數函數
GetSelectedCount() 會找出欄位中選取值 (綠色) 的數量。
getselectedcount (field_name
[, include_excluded])
GetPossibleCount() 用於找出指定欄位中可能值 (白色) 的數量。如果指定欄位包含選項,則也會將所選欄位 (綠色) 納入計數。
getpossiblecount(field_name)
GetExcludedCount() 用來尋找已識別欄位中的已排除相異值的數目。僅計入排除的值 (灰色儲存格與白色文字)。替代值 (白色儲存格與灰色文字) 和選取的排除值 (灰色儲存格與綠色文字) 不計算在內。
getexcludedcount(field_name)
此圖表函數會傳回名為 fieldname 的欄位中未選取值 (紅色儲存格與黑色文字) 的數量。該欄位必須處於 And 模式,此函數才有意義。
GetNotSelectedCount(fieldname
[, includeexcluded=false])
GetStateCounts() 圖表函數用於計算與指定選取狀態相符的唯一值的總數。
getstatecounts (field_name, state_name [, state_type1,...state_typeN])
欄位與選項函數
GetCurrentSelections() 會傳回文件中的目前選項。
getcurrentselections([record_sep [,tag_sep [,value_sep [,max_values]]]])
GetFieldSelections() 會傳回包含欄位中目前選項的 string。
getfieldselections (
field_name [, value_sep [, max_values]])
GetObjectField() 會傳回維度名稱。Index 為選用整數,代表應傳回的維度。
GetObjectField ([index])