DAGetFormFieldValue
表单字段、直接访问功能
描述
返回指定表单字段的值
语法
Delphi
Function TPDFlib.DAGetFormFieldValue(FileHandle, FieldIndex: Integer): WideString;
ActiveX
Function PDFlib::DAGetFormFieldValue(FileHandle As Long, FieldIndex As Long) As String
DLL
const wchar_t* DLDAGetFormFieldValue(int InstanceID, int FileHandle, int FieldIndex);
const char* DLDAGetFormFieldValueA(int InstanceID, int FileHandle, int FieldIndex);
参数
| FileHandle | 由 DAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 函数返回的句柄 |
|---|---|
| FieldIndex | 要操作的表单字段索引。第一个表单字段的索引为 1 |
返回值
返回指定表单字段的值。文件句柄无效或 FieldIndex 超出范围时返回空字符串。