THotPDF.GetLoadedFormFieldOptions Method
Returns the list of export values for all options in a loaded PDF form field as an array of strings
Declaration
function GetLoadedFormFieldOptions(FieldIndex: Integer): THPDFAnsiStringArray;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FieldIndex | The zero-based index of the target form field |
Return value
Returns the array of option export values for the field
Usage notes
- The returned array preserves the PDF's internal option order, so you can index it directly against GetLoadedFormFieldOption
- Only applicable to ComboBox or ListBox type fields; calling on text fields or check boxes will return an empty array
- To fetch the display text as well, call GetLoadedFormFieldOption item by item