獲取整合要處理的單條記錄。此函式可以用於「整合」規則中。
註:
此函式僅可用於 4 個以下的自訂維度。針對超過四個以上的自訂維度,請使用 DataUnitItem。
語法
DataUnit.GetItem (lItem, strAccount, strICP, strCustom1, strCustom2, strCustom3, strCustom4, dData)
表格 12-25 GetItem 函式的語法
| 參數 | 描述 |
|---|---|
|
lItem |
記錄號碼。 |
|
strAccount |
有效 Account 維度成員的名稱。 |
|
strICP |
有效 ICP 維度成員的名稱。 |
|
strCustom1 |
有效 Custom1 維度成員的名稱。 |
|
strCustom2 |
有效 Custom2 維度成員的名稱。 |
|
strCustom3 |
有效 Custom3 維度成員的名稱。 |
|
strCustom4 |
有效 Custom4 維度成員的名稱。 |
|
dData |
指定儲存格中的資料。 |
傳回值
包含帳戶、ICP、Custom1 到 Custom4、資料的陣列。
範例
Call DataUnit.GetItem(lItem, strAccount, strICP, strCustom1, strCustom2, strCustom3, strCustom4, dData)
If dData = 0 Then
...
End If