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 | 表单字段更新成功 |