SetFormFieldMaxLen

Form fields

Description

Sets the maximum number of characters that will be accepted for the specified text form field.

Syntax

Delphi

function TPDFlib.SetFormFieldMaxLen(Index, NewMaxLen: Integer): Integer;

ActiveX

Function PDFlib::SetFormFieldMaxLen(Index As Long, NewMaxLen As Long) As Long

DLL

int DLSetFormFieldMaxLen(int InstanceID, int Index, int NewMaxLen);

Parameters

IndexThe index of the form field to work with. The first form field has an index of 1.
NewMaxLenThe new maximum length to use for the form field

Return values

0The form field index was invalid The maximum length of the form field was set successfully
1