GetFormValues

Form fields

Description

Exports form field names and values through a caller-sized array

Returns the total field count so callers can use a count pass followed by one fill pass

Syntax

Delphi

Function GetFormValues(Var Values: Array Of TPDFlibFormValue): Integer;

Parameters

ValuesCaller-sized array that receives the name and value of each form field; only as many elements as the array holds are filled.

Return values

Returns the total number of form fields while filling Values with each field's name and value, up to the number of elements the array can hold. Compare the returned count with the array length to detect truncation.