SetFormFieldPercentFormat
Form fields
Description
This page describes SetFormFieldPercentFormat in PDFlibPas under the "Form fields" topic. API names, parameters, class names, filenames, and literals are kept exactly as they appear in the Delphi library and DLL entry points.
Review the syntax, parameters, and return values before calling the function.
Syntax
Delphi
Function TPDFlib.SetFormFieldPercentFormat(Index, Decimals, SepStyle: Integer): Integer;
Parameters
Index is the 1-based field index. Decimals (0..10) sets the displayed decimal places and SepStyle selects the thousands/decimal separator style (0..3, as for SetFormFieldNumberFormat).
Return Values
Returns 1 on success, or 0 when the field does not exist or a selector is out of range.
Remarks
Writes the AFPercent_Keystroke/AFPercent_Format action pair; the field value is stored as a fraction and displayed as a percentage by the viewer.