GetFormFieldSubName

表单字段

描述

对于单选按钮、复选框和选择(可滚动列表框或组合框下拉列表)表单字段,此函数返回指定的可能值

对于选择字段,可使用 GetformFieldSubDisplayName 函数检索选择项的显示名称

语法

Delphi

Function TPDFlib.GetFormFieldSubName(Index, SubIndex: Integer): WideString;

ActiveX

Function PDFlib::GetFormFieldSubName(Index As Long, SubIndex As Long) As String

DLL

const wchar_t* DLGetFormFieldSubName(int InstanceID, int Index, int SubIndex);
const char* DLGetFormFieldSubNameA(int InstanceID, int Index, int SubIndex);

参数

Index要检查的表单字段索引
SubIndex要获取的子值索引

返回值

返回字段的指定可选值(部分名称)。文档没有表单数据或字段索引无效时返回空字符串。