SetFormFieldCaptionA

Form fields

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SetFormFieldCaption and string arguments are interpreted using the current SetAnsiMode code page

Sets the caption of the form field. This applies to buttons, checkboxes and radiobutton form fields only

Syntax

Delphi

Function DLSetFormFieldCaptionA(InstanceID, Index: Integer; NewCaption: PAnsiChar): Integer;

DLL

int DLSetFormFieldCaptionA(int InstanceID, int Index, const char * NewCaption);

Parameters

IndexThe index of the form field
NewCaptionThe new caption for the form field

Return values

0The form field could not be found or the parameters were invalid The caption of the form field was set successfully
1