@SMARTLISTFROMINDEX
會根據 SmartList 中的成員順序傳回智慧型列示成員。
DTP 類型:
可以將 @SMARTLISTFROMINDEX
指派給字串、密碼、成員 或是多個成員 類型的 DTP。
語法:
@SMARTLISTFROMINDEX(SmartList,Index)
參數:
參數 | 描述 |
---|---|
SmartList |
設計時期提示或維度維度會顯示應用程式中的智慧型列示維度。 |
Index |
設計時期提示或文字 |
範例:
[sl_ind_Str]=@SmartListFromIndex([String1],[index_ST])
其中:
[sl_ind_Str]
是非勾選提示之字串 類型的 DTP。
[String1]
是勾選提示之字串 類型的 DTP。
[index_ST]
是勾選提示之數值 類型的 DTP。
假設參數如下:
智慧型列示:"CreditRatings"
索引:"2"
在此範例中,智慧型列示 "CreditRatings" 具有下列資料:
名稱 | 標籤 |
---|---|
AA | ID_ENUMNETLABEL_AA |
AAA | ID_ENUMNETLABEL_AAA |
AAMinus | ID_ENUMNETLABEL_AA22 |
A | ID_ENUMNETLABEL_A |
AMinus | ID_ENUMNETLABEL_AA22 |
AAPlus | ID_ENUMNETLABEL_AA11 |
APlus | ID_ENUMNETLABEL_A11 |
B | ID_ENUMNETLABEL_B |
BPlus | ID_ENUMNETLABEL_B11 |
BMinus | ID_ENUMNETLABEL_B22 |
BB | ID_ENUMNETLABEL_BB |
BBPlus | ID_ENUMNETLABEL_BB11 |
BBMinus | ID_ENUMNETLABEL_BB22 |
BBB | ID_ENUMNETLABEL_BBB |
AAAMinus | ID_ENUMNETLABEL_AAA- |
BBBPlus | ID_ENUMNETLABEL_BBB+ |
BBBMinus | ID_ENUMNETLABEL_BBB- |
CCCPlus | ID_ENUMNETLABEL_CCC+ |
CCC | ID_ENUMNETLABEL_CCC |
[sl_ind_Str]
會傳回 "AAMinus",因為其為第二個索引位置處的智慧型列示成員名稱。