Description
Gets the count of attachments of the PDF document.
Applies to
Syntax
long GetCount()
Return value
Long. Returns the actual count of attachments and returns 0 if an error occurs.
Usage
Call the function to get the count of attachments in a PDF document.
Examples
This example gets the count of the attachments that are newly added from the "D:\image" folder to the PDF document.
lpdf_doc = create PDFdocument lpdf_attach = create PDFattachment lpdf_attach.addfolder ( "D:\image",true) lpdf_doc.attachment = lpdf_attach ll_count = lpdf_attach.getcount( )
See also
Description
Gets the total number of DataWindow/DataStore/DataWindowChild objects (including retrieve and update) in BatchDataObjects.
Applies to
Syntax
objectname.getcount ( )
Return value
Integer.
Returns the number of the DataWindow/DataStore/DataWindowChild if it succeeds and -1 if an error occurs.
Examples
The following code example gets the number of DataWindow/DataStore/DataWindowChild objects. The return number is 1.
BatchDataObjects lbdo_test int li_return li_return = lbdo_test.AddRetrieveObject (dw_3) li_return = lbdo_test.GetCount()
See also
Description
Gets the total number of radio button objects in a PDFFormFieldRadioButtonGroup object.
Applies to
PDFFormFieldRadioButtonGroup object
Syntax
long GetCount()
Return value
Long. Returns the count of PDFFormFieldRadioButton objects if it succeeds and null if otherwise.
Examples
This example gets the count of radio button objects in the PDFFormFieldRadioButtonGroup lpdf_rbgroup.
Long ll_count ll_count = lpdf_rbgroup.getcount()
See also