SetFormFieldRangeValidation

Form fields, actions

Description

Adds an AFRange_Validate action with independently enabled minimum and maximum bounds

Syntax

Function TPDFlib.SetFormFieldRangeValidation(Index: Integer; HasMinimum: Boolean; Minimum: Double; HasMaximum: Boolean; Maximum: Double): Integer;

Remarks

Use the Boolean flags to enable bounds, so zero remains a valid minimum or maximum

Numbers are emitted with a locale-independent decimal point and NaN, infinity, disabled-both and reversed ranges are rejected

See also

SetFormFieldNumberFormat