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);
参数
| Index | 选择表单字段的索引 |
|---|---|
| SubIndex | 子字段索引,第一个子字段的索引为 1 |
| SubName | 新子字段的导出值 |
| DisplayName | 新子字段的显示值 |
返回值
| 0 | 未添加子字段。指定的表单字段可能不是选择型表单字段 |
|---|---|
| 1 | 表单字段更新成功 |