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);
int DLSetFormFieldChoiceSubA(int InstanceID, int Index, int SubIndex, const char* SubName, const char* DisplayName);

パラメータ

Index選択フォームフィールドのインデックス
SubIndexサブフィールドのインデックス。最初のサブフィールドのインデックスは 1 です
SubName新しいサブフィールドのエクスポート値
DisplayName新しいサブフィールドの表示値

戻り値

0サブフィールドは追加されませんでした。指定したフォームフィールドが選択フォームフィールドではなかった可能性があります
1フォームフィールドが正常に更新された