BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

SelectedItem Property

Get the index of the first selected item.

Type

Long (read-only)

Remarks

N/A.

Example Usage

Set oDocument = CreateObject("easyPDF.PDFDocument.8")
 
oDocument.Open "c:\test\input.pdf"
Set oFormFields = oDocument.FormFields
 
For Each oFormField In FormFields
    Select Case oFormField.Type
        Case easyPDFDocument.docFormFieldType.DOC_FRMTYPE_CHECK
            Set oChoiceField = oFormField
            MsgBox "Selected item: "+ CStr(oChoiceField.SelectedItem)
            MsgBox "Selected item count: "+ CStr(oChoiceField.SelectedItemCount)
            MsgBox "Selected item value: "+ oChoiceField.SelectedItemValue
        End Select
Next oFormField
 
oDocument.Close False