SetFormFieldChoiceSubA

表單欄位

描述

結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 SetFormFieldChoiceSub 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀

設定選擇類表單欄位中既有子欄位的匯出值與顯示值。顯示值為空字串時,會設成與匯出值相同的字串

可用 AddFormFieldChoiceSub 函式變更既有選擇類表單欄位中的子欄位項目

語法

Delphi

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

DLL

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

參數

Index選擇類表單欄位的索引
SubIndex子欄位的索引。第一個子欄位的索引為 1。
SubName新子欄位的匯出值。
DisplayName新子欄位的顯示值。

傳回值

0子欄位未加入。指定的表單欄位可能不是選擇類欄位。
1表單欄位更新成功。