SetFormFieldCaptionA
表单字段
描述
末尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅提供 Unicode 形式。其行为与 SetFormFieldCaption 相同,字符串参数使用当前 SetAnsiMode 代码页解释
设置表单字段的标题。这仅适用于按钮、复选框和单选按钮表单字段
语法
Delphi
Function DLSetFormFieldCaptionA(InstanceID, Index: Integer; NewCaption: PAnsiChar): Integer;
DLL
int DLSetFormFieldCaptionA(int InstanceID, int Index, const char * NewCaption);
参数
| Index | 表单字段的索引 |
|---|---|
| NewCaption | 表单字段的新标题 |
返回值
| 0 | 找不到表单字段或参数无效;已成功设置表单字段标题 |
|---|---|
| 1 |