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

GetItemIndex Method

Get index of a given item value.

Function GetItemIndex(ItemValue As String) As Long

int GetItemIndex(string ItemValue)

int GetItemIndex(String ItemValue) throws PDFDocumentException

Parameters

Return Values

An index.

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 "Index value of First Name: " + CStr(oChoiceField.GetItemIndex("First name"))
    End Select
Next oFormField
 
oDocument.Close False