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);

パラメータ

FileHandleDAOpenFile、DAOpenFileReadOnly または DAOpenFromStream 関数により返されるハンドル
FieldIndex操作対象のフォームフィールドのインデックスです。最初のフォームフィールドのインデックスは 1 です

戻り値

指定されたフォームフィールドの値を返します。ファイルハンドルが無効な場合やFieldIndexが範囲外の場合は空文字列を返します。