SetFormFieldValueByTitleA

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 SetFormFieldValueByTitle and string arguments are interpreted using the current SetAnsiMode code page

Sets the value of all the form fields with the specified title. The appearance streams for the form fields are generated if SetNeedAppearances(1) has been called

Syntax

Delphi

Function DLSetFormFieldValueByTitleA(InstanceID: Integer; Title, NewValue: PAnsiChar): Integer;

DLL

int DLSetFormFieldValueByTitleA(int InstanceID, const char * Title, const char * NewValue);

Parameters

TitleThe title of the form field to set
NewValueThe new value of the form field. For multi-line text fields you can use Chr(13) or Chr(13) + Chr(10) to force a line feed between lines

Return values

0The form field could not be found
1The value of the form field was set successfully