Quick PDF logo

SetFormFieldDefaultValue

Form fields

Description

Sets the default value of the field. This is the value which is shown when the reset button is pressed, if one is on the form.

Syntax

Delphi

function TQuickPDF0813.SetFormFieldDefaultValue(Index: Integer; 
  NewDefaultValue: WideString): Integer;

ActiveX

Function QuickPDF0813.PDFLibrary::SetFormFieldDefaultValue(Index As Long,
  NewDefaultValue As String) As Long

DLL

int QuickPDFSetFormFieldDefaultValue(int InstanceID, int Index,
  wchar_t * NewDefaultValue)

Parameters

Index The index of the form field to change
NewDefaultValue The new default value for the form field. For multi-line text fields you can use Chr(13) or Chr(13) + Chr(10) to force a line feed between lines.

Return values

0 The form field could not be found
1 The default value of the specified form field was set successfully

Copyright © 2011 Debenu. All rights reserved. AboutContactBlogNewsletterSupportBuyForum