Quick PDF logo

AddFormFieldSub

Form fields

Description

Adds a sub-field to the specified radio-button or choice form field.

The function returns a temporary form field Index which can be used with the SetFormFieldBounds, SetFormFieldCheckStyle and other functions.

Syntax

Delphi

function TQuickPDF0813.AddFormFieldSub(Index: Integer; SubName: WideString): Integer;

ActiveX

Function QuickPDF0813.PDFLibrary::AddFormFieldSub(Index As Long,
  SubName As String) As Long

DLL

int QuickPDFAddFormFieldSub(int InstanceID, int Index, wchar_t * SubName)

Parameters

Index The index of the form field to work with. The first form field has an index of 1.
SubName The name of the new sub-field. The value of the form field could be set to this name using the SetFormFieldValue function.

Return values

0 The sub-field was not added. The specified form field may not have been a radio-button form field.
Non-zero A temporary field Index

Copyright © 2011 Debenu. All rights reserved. AboutContactBlogNewsletterSupportBuyForum