SetFormFieldValueA

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

Sets the initial value of a form field. The appearance stream for the form field is generated if

SetNeedAppearances(1) has been called.

Syntax

Delphi

Function DLSetFormFieldValueA(InstanceID, Index: Integer; NewValue: PAnsiChar): Integer;

DLL

int DLSetFormFieldValueA(int InstanceID, int Index, const char * NewValue);

Parameters

IndexThe index of the required form field. The first form field has an index of 1.
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 break.

Return values

0Could not find the specified form field
1The default value of the form field was set successfully