AddFormFieldChoiceSubA

フォームフィールド

説明

末尾の A は ANSI(char)DLL エントリポイントを示します。ActiveX/COM インターフェースでは Unicode 形式のみを公開します。動作は AddFormFieldChoiceSub と同じで、文字列引数は現在の SetAnsiMode コードページを使用して解釈されます

AddFormFieldSub 関数と似ていますが、選択フィールド項目'のエクスポート値と表示値を設定できます

次で使用できる一時フォームフィールド Index を返します

SetFormFieldBounds、SetFormFieldCheckStyle およびその他の関数

構文

Delphi

Function DLAddFormFieldChoiceSubA(InstanceID, Index: Integer; SubName, DisplayName: PAnsiChar): Integer;

DLL

int DLAddFormFieldChoiceSubA(int InstanceID, int Index, const char * SubName, const char * DisplayName);

パラメータ

Index操作対象のフォームフィールドのインデックス。最初のフォームフィールドのインデックスは1。フォームフィールドは選択肢フィールドでなければならない
SubName新しいサブフィールドのエクスポート値。SetFormFieldValue 関数を使用してフォームフィールドの値をこの名前に設定できます。新しいサブフィールドの表示名
DisplayName

戻り値

0サブフィールドは追加されませんでした。指定したフォームフィールドが選択フォームフィールドではなかった可能性があります
Non-zero一時フィールドの Index