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 超出範圍時傳回空字串。