SetFormFieldChildTitleA

表單欄位

描述

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

設定指定表單欄位的標題。階層式排列的表單欄位,此函式只設定欄位名稱的最後一段,例如名為 "Address.ZipCode" 的欄位可改成 "Address.PostalCode"

語法

Delphi

Function DLSetFormFieldChildTitleA(InstanceID, Index: Integer; NewTitle: PAnsiChar): Integer;

DLL

int DLSetFormFieldChildTitleA(int InstanceID, int Index, const char * NewTitle);

參數

Index要設定標題的表單欄位索引
NewTitle指定欄位標題最後一段的新值。

傳回值

0找不到表單欄位
1指定表單欄位的標題變更成功