SetFormFieldChoiceSub
表單欄位
描述
設定選擇類表單欄位中既有子欄位的匯出值與顯示值。顯示值為空字串時,會設成與匯出值相同的字串
可用 AddFormFieldChoiceSub 函式變更既有選擇類表單欄位中的子欄位項目
語法
Delphi
Function TPDFlib.SetFormFieldChoiceSub(Index, SubIndex: Integer; Const SubName, DisplayName: WideString): Integer;
ActiveX
Function PDFlib::SetFormFieldChoiceSub(Index As Long, SubIndex As Long, SubName As String, DisplayName As String) As Long
DLL
int DLSetFormFieldChoiceSub(int InstanceID, int Index, int SubIndex, const wchar_t* SubName, const wchar_t* DisplayName);
int DLSetFormFieldChoiceSubA(int InstanceID, int Index, int SubIndex, const char* SubName, const char* DisplayName);
參數
| Index | 選擇類表單欄位的索引 |
|---|---|
| SubIndex | 子欄位的索引。第一個子欄位的索引為 1。 |
| SubName | 新子欄位的匯出值。 |
| DisplayName | 新子欄位的顯示值。 |
傳回值
| 0 | 子欄位未加入。指定的表單欄位可能不是選擇類欄位。 |
|---|---|
| 1 | 表單欄位更新成功。 |